2023-12-06 00:43:35 +01:00
|
|
|
<?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>it.cavallium.rockserver</groupId>
|
|
|
|
<artifactId>rockserver-core</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
|
|
|
<properties>
|
2024-03-28 23:52:26 +01:00
|
|
|
<maven.compiler.source>22</maven.compiler.source>
|
|
|
|
<maven.compiler.target>22</maven.compiler.target>
|
2023-12-06 00:43:35 +01:00
|
|
|
<native.maven.plugin.version>0.9.28</native.maven.plugin.version>
|
2024-03-26 22:44:22 +01:00
|
|
|
<gestalt.version>0.25.3</gestalt.version>
|
2024-03-26 21:18:44 +01:00
|
|
|
<rocksdb.version>9.0.0</rocksdb.version>
|
2024-03-29 00:00:12 +01:00
|
|
|
<slf4j.version>2.0.12</slf4j.version>
|
2023-12-06 00:43:35 +01:00
|
|
|
<imageName>rockserver-core</imageName>
|
|
|
|
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
|
|
|
</properties>
|
|
|
|
|
2024-03-28 23:52:26 +01:00
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>sonatype-snapshot</id>
|
|
|
|
<name>Sonatype OSS Snapshots</name>
|
|
|
|
<releases>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</releases>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
2023-12-06 00:43:35 +01:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2024-03-30 02:26:57 +01:00
|
|
|
<groupId>org.mongodb</groupId>
|
|
|
|
<artifactId>bson</artifactId>
|
|
|
|
<version>5.0.0</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2023-12-06 00:43:35 +01:00
|
|
|
<groupId>org.rocksdb</groupId>
|
|
|
|
<artifactId>rocksdbjni</artifactId>
|
2023-12-08 18:34:57 +01:00
|
|
|
<version>${rocksdb.version}</version>
|
2023-12-06 00:43:35 +01:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.argparse4j</groupId>
|
|
|
|
<artifactId>argparse4j</artifactId>
|
|
|
|
<version>0.9.0</version>
|
|
|
|
</dependency>
|
2023-12-08 20:46:40 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.unimi.dsi</groupId>
|
2024-03-28 23:52:26 +01:00
|
|
|
<artifactId>fastutil</artifactId>
|
|
|
|
<version>8.5.13</version>
|
2023-12-08 20:46:40 +01:00
|
|
|
</dependency>
|
2023-12-06 00:43:35 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jetbrains</groupId>
|
|
|
|
<artifactId>annotations</artifactId>
|
|
|
|
<version>24.0.1</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.stephenc.high-scale-lib</groupId>
|
|
|
|
<artifactId>high-scale-lib</artifactId>
|
|
|
|
<version>1.1.4</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.gestalt-config</groupId>
|
|
|
|
<artifactId>gestalt-core</artifactId>
|
|
|
|
<version>${gestalt.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.gestalt-config</groupId>
|
|
|
|
<artifactId>gestalt-hocon</artifactId>
|
|
|
|
<version>${gestalt.version}</version>
|
|
|
|
</dependency>
|
2024-03-28 23:52:26 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.thrift</groupId>
|
|
|
|
<artifactId>libthrift</artifactId>
|
|
|
|
<version>0.20.0</version>
|
|
|
|
</dependency>
|
2024-03-29 00:00:12 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>${slf4j.version}</version>
|
|
|
|
</dependency>
|
2023-12-06 00:43:35 +01:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.lz4</groupId>
|
|
|
|
<artifactId>lz4-java</artifactId>
|
|
|
|
<version>1.8.0</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
<version>5.9.2</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2023-12-08 18:34:57 +01:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/filtered-resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2023-12-06 00:43:35 +01:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<version>3.0.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>java</id>
|
|
|
|
<goals>
|
|
|
|
<goal>java</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2024-03-29 21:47:54 +01:00
|
|
|
<version>3.12.1</version>
|
2023-12-06 00:43:35 +01:00
|
|
|
<configuration>
|
|
|
|
<source>${maven.compiler.source}</source>
|
|
|
|
<target>${maven.compiler.source}</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>3.3.0</version>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
|
</descriptorRefs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
2024-03-29 00:00:12 +01:00
|
|
|
<profile>
|
|
|
|
<id>standalone</id>
|
2024-03-29 21:47:54 +01:00
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
2024-03-29 00:00:12 +01:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-jdk14</artifactId>
|
|
|
|
<version>${slf4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
2023-12-06 00:43:35 +01:00
|
|
|
<profile>
|
|
|
|
<id>native</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
<version>${native.maven.plugin.version}</version>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>build-native</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile-no-fork</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>package</phase>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>test-native</id>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>test</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<fallback>false</fallback>
|
|
|
|
<agent>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</agent>
|
|
|
|
<buildArgs>
|
2023-12-06 01:31:02 +01:00
|
|
|
<buildArg>-H:+UnlockExperimentalVMOptions</buildArg>
|
2023-12-06 00:43:35 +01:00
|
|
|
<buildArg>-march=native</buildArg>
|
2023-12-06 01:31:02 +01:00
|
|
|
<buildArg>-H:IncludeResourceBundles=net.sourceforge.argparse4j.internal.ArgumentParserImpl</buildArg>
|
2023-12-06 00:43:35 +01:00
|
|
|
<buildArg>-O1</buildArg>
|
2023-12-06 01:31:02 +01:00
|
|
|
<buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg>
|
|
|
|
<buildArg>-H:+JNI</buildArg>
|
2024-03-29 22:58:54 +01:00
|
|
|
<buildArg>-H:+ForeignAPISupport</buildArg>
|
2023-12-06 01:31:02 +01:00
|
|
|
<buildArg>-H:IncludeResources=librocksdbjni-linux64.so</buildArg>
|
|
|
|
<buildArg>-H:IncludeResources=it/cavallium/rockserver/core/resources/default.conf</buildArg>
|
2024-03-29 22:58:54 +01:00
|
|
|
<buildArg>-H:IncludeResources=it/cavallium/rockserver/core/resources/build.properties</buildArg>
|
2023-12-06 01:31:02 +01:00
|
|
|
<buildArg>-H:DynamicProxyConfigurationFiles=proxy-config.json</buildArg>
|
2024-03-29 22:58:54 +01:00
|
|
|
<buildArg>-H:ReflectionConfigurationFiles=reflect-config.json</buildArg>
|
2024-03-30 02:20:42 +01:00
|
|
|
<buildArg>--initialize-at-run-time=org.rocksdb.RocksDB,org.rocksdb.RocksObject,org.rocksdb.RocksDBException</buildArg>
|
2023-12-06 01:31:02 +01:00
|
|
|
<!--<buildArg>_-no-fallback</buildArg>-->
|
2023-12-06 00:43:35 +01:00
|
|
|
<buildArg>--gc=G1</buildArg>
|
2024-03-30 00:06:44 +01:00
|
|
|
<buildArg>--link-at-build-time</buildArg>
|
2023-12-06 00:43:35 +01:00
|
|
|
</buildArgs>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<version>3.0.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>java-agent</id>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>java</executable>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>-classpath</argument>
|
|
|
|
<classpath/>
|
|
|
|
<argument>${mainClass}</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>native</id>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>${project.build.directory}/${imageName}</executable>
|
|
|
|
<workingDirectory>${project.build.directory}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|