Added build with dependencies
This commit is contained in:
parent
29c256749a
commit
b2acb7f546
42
pom.xml
42
pom.xml
@ -19,9 +19,47 @@
|
||||
</dependencies>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<exec.mainClass>xbot.MainLauncher</exec.mainClass>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.5.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>xbot.MainLauncher</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id> <!-- this is used for inheritance merges -->
|
||||
<phase>package</phase> <!-- bind to the packaging phase -->
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>3.1.1</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<name>XCraftBots</name>
|
||||
</project>
|
@ -24,12 +24,23 @@ public class MainLauncher {
|
||||
}
|
||||
|
||||
switch (args[0]) {
|
||||
case "1" -> XCastPlantFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
case "2" -> MarketplaceUI.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
case "3" -> SwingUI2.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
case "4" -> XCastHealthFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
case "5" -> XCastOkariFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
default -> System.out.println("Unknown selection: " + args[0]);
|
||||
case "1":
|
||||
XCastPlantFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
break;
|
||||
case "2":
|
||||
MarketplaceUI.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
break;
|
||||
case "3":
|
||||
SwingUI2.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
break;
|
||||
case "4":
|
||||
XCastHealthFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
break;
|
||||
case "5":
|
||||
XCastOkariFarm.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
break;
|
||||
default:
|
||||
System.out.println("Unknown selection: " + args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user