Added maven shade process
This commit is contained in:
@@ -7,17 +7,10 @@
|
||||
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/java:1": {
|
||||
"version": "none",
|
||||
"installMaven": "false",
|
||||
"installGradle": "false"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"redhat.java",
|
||||
"redhat.vscode-xml"
|
||||
]
|
||||
"version": "21",
|
||||
"installMaven": "true",
|
||||
"installGradle": "false",
|
||||
"mavenVersion": "3.9.10"
|
||||
}
|
||||
}
|
||||
|
||||
|
6
.vscode/extensions.json
vendored
Normal file
6
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"vscjava.vscode-java-pack",
|
||||
"redhat.vscode-xml"
|
||||
]
|
||||
}
|
11
.vscode/tasks.json
vendored
11
.vscode/tasks.json
vendored
@@ -1,15 +1,6 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "java (buildArtifact)",
|
||||
"targetPath": "${workspaceFolder}/devserver/plugins/${workspaceFolderBasename}.jar",
|
||||
"elements": [
|
||||
"${compileOutput}",
|
||||
"${dependencies}"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"label": "Build SpigotResourceSync to plugins"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
0
devserver/loadplugin.sh
Normal file → Executable file
0
devserver/loadplugin.sh
Normal file → Executable file
40
pom.xml
40
pom.xml
@@ -6,7 +6,34 @@
|
||||
|
||||
<groupId>systems.reslate.entertainment.spigotresourcesync</groupId>
|
||||
<artifactId>spigotresourcesync</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>1.0.1-SNAPSHOT</version>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<configuration>
|
||||
<artifactSet>
|
||||
<excludes>
|
||||
<exclude>org.junit.jupiter:junit-jupiter-engine</exclude>
|
||||
<exclude>org.apache.maven:lib:tests</exclude>
|
||||
<exclude>org.spigotmc:spigot-api</exclude>
|
||||
</excludes>
|
||||
</artifactSet>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
@@ -24,7 +51,7 @@
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.20.4-R0.1-SNAPSHOT</version>
|
||||
<version>1.21.4-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -35,17 +62,12 @@
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||
<artifactId>jackson-dataformat-yaml</artifactId>
|
||||
<version>2.18.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
<version>2.18.0</version>
|
||||
<version>2.19.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>2.18.0</version>
|
||||
<version>2.19.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
@@ -19,7 +19,7 @@ public class ApacheCommonsIOSynchroniser implements Synchroniser {
|
||||
if (dest.isDirectory()) {
|
||||
FileUtils.copyDirectory(source, dest);
|
||||
} else {
|
||||
throw new IOException("Cannot synchronise directy to non-directory!");
|
||||
throw new IOException("Cannot synchronise directory to non-directory!");
|
||||
// TODO add more detail to error message.
|
||||
}
|
||||
} else {
|
||||
|
@@ -1,3 +1,3 @@
|
||||
name: SpigotResourceSync
|
||||
version: 1.0.0
|
||||
version: 1.0.1
|
||||
main: solutions.reslate.entertainment.spigotresourcesync.SpigotResourceSync
|
@@ -27,6 +27,6 @@ public class TestConfigManager {
|
||||
assumeTrue(dummyConfig.exists());
|
||||
ConfigManager finalConfigManager = new ConfigManager(dummyConfig, dummySerialiser, logger);
|
||||
finalConfigManager.load();
|
||||
assertEquals(dummySyncPair, finalConfigManager.getConfiguration().getSyncList().gatherAllSyncPairs().get(0));
|
||||
assertEquals(dummySyncPair, finalConfigManager.getConfiguration().getSyncList().gatherAllSyncPairs().get(1));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user