493 lines
17 KiB
XML
493 lines
17 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>it.cavallium.rockserver</groupId>
|
|
<artifactId>rockserver-core</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.source>22</maven.compiler.source>
|
|
<maven.compiler.target>22</maven.compiler.target>
|
|
<native.maven.plugin.version>0.9.28</native.maven.plugin.version>
|
|
<gestalt.version>0.32.1</gestalt.version>
|
|
<rocksdb.version>9.0.0</rocksdb.version>
|
|
<slf4j.version>2.0.12</slf4j.version>
|
|
<imageName>rockserver-core</imageName>
|
|
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
|
|
<protobuf-plugin.version>0.6.1</protobuf-plugin.version>
|
|
<protobuf.version>3.25.3</protobuf.version>
|
|
<grpc.version>1.65.1</grpc.version>
|
|
<netty.version>4.1.100.Final</netty.version>
|
|
<rainbowgum.version>0.7.0</rainbowgum.version>
|
|
</properties>
|
|
|
|
<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>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>mchv-release-distribution</id>
|
|
<name>MCHV Release Apache Maven Packages Distribution</name>
|
|
<url>https://mvn.mchv.eu/repository/mchv</url>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>mchv-snapshot-distribution</id>
|
|
<name>MCHV Snapshot Apache Maven Packages Distribution</name>
|
|
<url>https://mvn.mchv.eu/repository/mchv-snapshot</url>
|
|
<releases>
|
|
<enabled>false</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.rocksdb</groupId>
|
|
<artifactId>rocksdbjni</artifactId>
|
|
<version>${rocksdb.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sourceforge.argparse4j</groupId>
|
|
<artifactId>argparse4j</artifactId>
|
|
<version>0.9.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>it.unimi.dsi</groupId>
|
|
<artifactId>fastutil</artifactId>
|
|
<version>8.5.13</version>
|
|
</dependency>
|
|
<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>
|
|
<dependency>
|
|
<groupId>org.apache.thrift</groupId>
|
|
<artifactId>libthrift</artifactId>
|
|
<version>0.20.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-netty</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
<version>${netty.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
<classifier>linux-x86_64</classifier>
|
|
<version>${netty.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-tcnative-boringssl-static</artifactId>
|
|
<version>2.0.65.Final</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-protobuf</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-stub</artifactId>
|
|
<version>${grpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.reactivestreams</groupId>
|
|
<artifactId>reactive-streams</artifactId>
|
|
<version>1.0.4</version>
|
|
</dependency>
|
|
|
|
<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>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/filtered-resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
</resources>
|
|
<extensions>
|
|
<extension>
|
|
<groupId>kr.motd.maven</groupId>
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
<version>1.6.1</version>
|
|
</extension>
|
|
</extensions>
|
|
<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>
|
|
<version>3.12.1</version>
|
|
<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>
|
|
<version>3.3.1</version>
|
|
</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.xolstice.maven.plugins</groupId>
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
<version>${protobuf-plugin.version}</version>
|
|
<configuration>
|
|
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
|
|
<pluginId>grpc-java</pluginId>
|
|
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<configuration>
|
|
<pluginParameter>
|
|
@generated=omit
|
|
</pluginParameter>
|
|
</configuration>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
<goal>compile-custom</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>fatjar</id>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-core</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-pattern</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-slf4j</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/standalone/java/</source>
|
|
<source>src/fatjar/java/</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.4.1</version>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
</transformers>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>library</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/library/java/</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>native</id>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-core</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-pattern</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jstach.rainbowgum</groupId>
|
|
<artifactId>rainbowgum-slf4j</artifactId>
|
|
<version>${rainbowgum.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/native/java/</source>
|
|
<source>src/standalone/java/</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<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>
|
|
<buildArg>-H:+UnlockExperimentalVMOptions</buildArg>
|
|
<buildArg>-march=native</buildArg>
|
|
<buildArg>-H:IncludeResourceBundles=net.sourceforge.argparse4j.internal.ArgumentParserImpl</buildArg>
|
|
<buildArg>-O1</buildArg>
|
|
<buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg>
|
|
<buildArg>-H:+JNI</buildArg>
|
|
<buildArg>-H:+ForeignAPISupport</buildArg>
|
|
<buildArg>-H:IncludeResources=librocksdbjni-linux64.so</buildArg>
|
|
<buildArg>-H:IncludeResources=it/cavallium/rockserver/core/resources/default.conf</buildArg>
|
|
<buildArg>-H:IncludeResources=it/cavallium/rockserver/core/resources/build.properties</buildArg>
|
|
<buildArg>-H:DynamicProxyConfigurationFiles=proxy-config.json</buildArg>
|
|
<buildArg>-H:ReflectionConfigurationFiles=reflect-config.json</buildArg>
|
|
<buildArg>--install-exit-handlers</buildArg>
|
|
|
|
<buildArg>--initialize-at-build-time=io.jstach.rainbowgum</buildArg>
|
|
<buildArg>--initialize-at-build-time=io.jstach.rainbowgum.slf4j</buildArg>
|
|
<buildArg>--initialize-at-build-time=org.slf4j</buildArg>
|
|
<buildArg>--initialize-at-build-time=io.netty.util.internal.logging</buildArg>
|
|
|
|
<buildArg>--initialize-at-run-time=org.rocksdb.RocksDB</buildArg>
|
|
<buildArg>--initialize-at-run-time=org.rocksdb.RocksObject</buildArg>
|
|
<buildArg>--initialize-at-run-time=org.rocksdb.RocksDBException</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.util.AbstractReferenceCounted</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.handler.ssl.JdkApplicationProtocolNegotiator</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.handler.ssl.OpenSslDefaultApplicationProtocolNegotiator</buildArg>
|
|
<buildArg>--initialize-at-run-time=io.netty.handler.ssl.OpenSslNpnApplicationProtocolNegotiator</buildArg>
|
|
<buildArg>--report-unsupported-elements-at-runtime</buildArg>
|
|
|
|
<buildArg>-dsa</buildArg>
|
|
<buildArg>--no-fallback</buildArg>
|
|
<buildArg>--gc=G1</buildArg>
|
|
<buildArg>--link-at-build-time</buildArg>
|
|
</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> |