Added maven shade process
This commit is contained in:
@@ -7,17 +7,10 @@
|
|||||||
|
|
||||||
"features": {
|
"features": {
|
||||||
"ghcr.io/devcontainers/features/java:1": {
|
"ghcr.io/devcontainers/features/java:1": {
|
||||||
"version": "none",
|
"version": "21",
|
||||||
"installMaven": "false",
|
"installMaven": "true",
|
||||||
"installGradle": "false"
|
"installGradle": "false",
|
||||||
}
|
"mavenVersion": "3.9.10"
|
||||||
},
|
|
||||||
"customizations": {
|
|
||||||
"vscode": {
|
|
||||||
"extensions": [
|
|
||||||
"redhat.java",
|
|
||||||
"redhat.vscode-xml"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"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>
|
<groupId>systems.reslate.entertainment.spigotresourcesync</groupId>
|
||||||
<artifactId>spigotresourcesync</artifactId>
|
<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>
|
<properties>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
@@ -24,7 +51,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.20.4-R0.1-SNAPSHOT</version>
|
<version>1.21.4-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -35,17 +62,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||||
<artifactId>jackson-dataformat-yaml</artifactId>
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
||||||
<version>2.18.0</version>
|
<version>2.19.2</version>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
||||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
||||||
<version>2.18.0</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-core</artifactId>
|
<artifactId>jackson-core</artifactId>
|
||||||
<version>2.18.0</version>
|
<version>2.19.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
@@ -19,7 +19,7 @@ public class ApacheCommonsIOSynchroniser implements Synchroniser {
|
|||||||
if (dest.isDirectory()) {
|
if (dest.isDirectory()) {
|
||||||
FileUtils.copyDirectory(source, dest);
|
FileUtils.copyDirectory(source, dest);
|
||||||
} else {
|
} 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.
|
// TODO add more detail to error message.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
name: SpigotResourceSync
|
name: SpigotResourceSync
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
main: solutions.reslate.entertainment.spigotresourcesync.SpigotResourceSync
|
main: solutions.reslate.entertainment.spigotresourcesync.SpigotResourceSync
|
@@ -27,6 +27,6 @@ public class TestConfigManager {
|
|||||||
assumeTrue(dummyConfig.exists());
|
assumeTrue(dummyConfig.exists());
|
||||||
ConfigManager finalConfigManager = new ConfigManager(dummyConfig, dummySerialiser, logger);
|
ConfigManager finalConfigManager = new ConfigManager(dummyConfig, dummySerialiser, logger);
|
||||||
finalConfigManager.load();
|
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