rockserver/pom.xml

545 lines
19 KiB
XML
Raw Normal View History

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>
2024-10-17 19:29:47 +02:00
<version>${revision}</version>
2023-12-06 00:43:35 +01:00
<properties>
2024-10-17 19:29:47 +02:00
<revision>1.0.0-SNAPSHOT</revision>
<maven.compiler.release>23</maven.compiler.release>
2023-12-06 00:43:35 +01:00
<native.maven.plugin.version>0.9.28</native.maven.plugin.version>
<gestalt.version>0.32.2</gestalt.version>
2024-10-06 12:46:06 +02:00
<rocksdb.version>9.6.1</rocksdb.version>
<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>
2024-07-01 23:46:24 +02:00
<protobuf-plugin.version>0.6.1</protobuf-plugin.version>
<protobuf.version>3.25.3</protobuf.version>
2024-10-17 22:28:34 +02:00
<grpc.version>1.68.0</grpc.version>
2024-09-19 00:47:07 +02:00
<netty.version>4.1.100.Final</netty.version>
2024-09-13 10:52:34 +02:00
<rainbowgum.version>0.7.0</rainbowgum.version>
2023-12-06 00:43:35 +01:00
</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>
2024-10-06 12:46:06 +02:00
<repository>
<id>maven_central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>
2024-09-13 12:51:02 +02:00
<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>
2023-12-06 00:43:35 +01:00
<dependencies>
<dependency>
<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>
<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>
2024-10-06 12:46:06 +02:00
<version>24.1.0</version>
2023-12-06 00:43:35 +01:00
<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>
2024-10-06 12:53:11 +02:00
<version>0.20.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
2024-07-01 23:46:24 +02:00
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>${grpc.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
2024-07-01 23:46:24 +02:00
</dependency>
2024-09-19 00:47:07 +02:00
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<version>${netty.version}</version>
</dependency>
2024-09-27 00:06:21 +02:00
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<classifier>linux-x86_64</classifier>
<version>${netty.version}</version>
</dependency>
2024-09-14 00:05:36 +02:00
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.65.Final</version>
</dependency>
2024-07-01 23:46:24 +02:00
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpc.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
2024-07-01 23:46:24 +02:00
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
2024-07-01 23:46:24 +02:00
</dependency>
2024-09-25 11:11:09 +02:00
<dependency>
<groupId>org.reactivestreams</groupId>
<artifactId>reactive-streams</artifactId>
<version>1.0.4</version>
</dependency>
2024-10-18 18:03:17 +02:00
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
2024-10-23 16:25:02 +02:00
<version>3.6.8</version>
2024-10-18 18:03:17 +02:00
</dependency>
<dependency>
<groupId>com.salesforce.servicelibs</groupId>
<artifactId>reactor-grpc-stub</artifactId>
<version>1.2.4</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
2024-10-23 15:57:58 +02:00
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</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>
2024-10-17 22:28:34 +02:00
<version>5.10.1</version>
2023-12-06 00:43:35 +01:00
<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>
2024-07-01 23:46:24 +02:00
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.1</version>
</extension>
</extensions>
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-10-17 22:28:34 +02:00
<version>3.13.0</version>
2023-12-06 00:43:35 +01:00
<configuration>
2024-10-17 22:28:34 +02:00
<release>${maven.compiler.release}</release>
2023-12-06 00:43:35 +01:00
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
2024-09-19 01:02:28 +02:00
<version>3.3.1</version>
2023-12-06 00:43:35 +01:00
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
2024-10-17 22:28:34 +02:00
<version>3.4.1</version>
2023-12-06 00:43:35 +01:00
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
2024-07-01 23:46:24 +02:00
<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>
<protocPlugins>
<protocPlugin>
<id>reactor-grpc</id>
<groupId>com.salesforce.servicelibs</groupId>
<artifactId>reactor-grpc</artifactId>
<version>1.2.4</version>
<mainClass>com.salesforce.reactorgrpc.ReactorGrpcGenerator</mainClass>
</protocPlugin>
</protocPlugins>
2024-07-01 23:46:24 +02:00
</configuration>
<executions>
<execution>
<configuration>
<pluginParameter>
@generated=omit
</pluginParameter>
</configuration>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
2023-12-06 00:43:35 +01:00
</plugins>
</build>
<profiles>
<profile>
2024-09-16 17:11:31 +02:00
<id>fatjar</id>
<dependencies>
<dependency>
2024-09-13 10:52:34 +02:00
<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>
2024-09-13 10:52:34 +02:00
<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>
2024-09-16 17:11:31 +02:00
<source>src/fatjar/java/</source>
2024-09-13 10:52:34 +02:00
</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>
2024-09-16 17:11:31 +02:00
<profile>
<id>library</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
2024-10-17 22:28:34 +02:00
<version>3.5.0</version>
2024-09-16 17:11:31 +02:00
<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>
2023-12-06 00:43:35 +01:00
<profile>
<id>native</id>
2024-09-16 17:11:31 +02:00
<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>
2023-12-06 00:43:35 +01:00
<build>
<plugins>
2024-09-16 17:11:31 +02:00
<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>
2023-12-06 00:43:35 +01:00
<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>
2024-09-13 11:39:29 +02:00
<buildArg>-H:+StaticExecutableWithDynamicLibC</buildArg>
2023-12-06 01:31:02 +01:00
<buildArg>-H:+JNI</buildArg>
<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>
<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>
<buildArg>-H:ReflectionConfigurationFiles=reflect-config.json</buildArg>
2024-09-13 11:47:11 +02:00
<buildArg>--install-exit-handlers</buildArg>
2024-09-13 10:52:34 +02:00
<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>
2024-09-14 00:05:36 +02:00
<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>
2024-09-13 10:52:34 +02:00
<buildArg>-dsa</buildArg>
<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>
2024-10-17 22:28:34 +02:00
<version>3.3.0</version>
2023-12-06 00:43:35 +01:00
<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>