0cef411125
- Restructured to multi-module Maven project (bootstrap + launcher) - Removed duplicate code (launcher/launcher/ with JCEF) - Added JavaFX modules to lib/javafx in ZIP - Added JRE 21 to lib/jre21 in ZIP - Fixed Bootstrap with UTF-8 encoding and JavaFX module-path - Fixed JAR naming (zernmclauncher.jar) - Added Windows build configuration (ZernMC-win-*.zip) - Fixed version parsing for -any, -alpha, -beta suffixes
169 lines
6.9 KiB
XML
169 lines
6.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>me.sashegdev</groupId>
|
|
<artifactId>ZernMCLauncher</artifactId>
|
|
<version>1.0.8</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>ZernMC Launcher Parent</name>
|
|
<description>ZernMC Launcher - Multi-module project</description>
|
|
|
|
<modules>
|
|
<module>bootstrap</module>
|
|
<module>launcher</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.organization.name>ZernMC</project.organization.name>
|
|
<project.inceptionYear>2026</project.inceptionYear>
|
|
<project.description>ZernMC Launcher - Multi-module project</project.description>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.5.14</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>2.15.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>2.10.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.json</groupId>
|
|
<artifactId>json</artifactId>
|
|
<version>20231013</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.fusesource.jansi</groupId>
|
|
<artifactId>jansi</artifactId>
|
|
<version>2.4.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jline</groupId>
|
|
<artifactId>jline</artifactId>
|
|
<version>3.24.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>me.tongfei</groupId>
|
|
<artifactId>progressbar</artifactId>
|
|
<version>0.9.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.15.1</version>
|
|
</dependency>
|
|
<!-- JavaFX for Windows -->
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-controls</artifactId>
|
|
<version>21</version>
|
|
<classifier>win</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-web</artifactId>
|
|
<version>21</version>
|
|
<classifier>win</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-graphics</artifactId>
|
|
<version>21</version>
|
|
<classifier>win</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-base</artifactId>
|
|
<version>21</version>
|
|
<classifier>win</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-media</artifactId>
|
|
<version>21</version>
|
|
<classifier>win</classifier>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.2.3</version>
|
|
</plugin>
|
|
|
|
<!-- Shade Plugin -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputFile>../../server/builds/ZernMCLauncher.jar</outputFile>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>${mainClass}</mainClass>
|
|
<manifestEntries>
|
|
<Implementation-Version>${project.version}</Implementation-Version>
|
|
<Implementation-Title>ZernMC Launcher</Implementation-Title>
|
|
<Implementation-Vendor>SashegDev</Implementation-Vendor>
|
|
<Implementation-Description>Samopisnui Minecraft-launcher. by SashegDev</Implementation-Description>
|
|
<Implementation-URL>https://github.com/SashegDev/launcher</Implementation-URL>
|
|
</manifestEntries>
|
|
</transformer>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<!-- ==================== GLOBAL ==================== -->
|
|
<profile>
|
|
<id>global</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<properties>
|
|
<build.profile>global</build.profile>
|
|
<launcher.title>ZernMC Launcher</launcher.title>
|
|
<server.url>http://87.120.187.36:1582</server.url>
|
|
<!-- Можно добавить флаги для отключения некоторых фич -->
|
|
</properties>
|
|
</profile>
|
|
|
|
<!-- ==================== ZERNMC ==================== -->
|
|
<profile>
|
|
<id>zernmc</id>
|
|
<properties>
|
|
<build.profile>zernmc</build.profile>
|
|
<launcher.title>ZernMC Private Launcher</launcher.title>
|
|
<server.url>http://87.120.187.36:1582</server.url>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project> |