mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 23:08:30 +01:00
50bed6a2be
This reduces computation processing needing, since Bedrock doesn't have any hover text ability. This also fixes a 1.8 bug where villager titles would not process correctly - by having a dummy serializer, a recent MCProtocolLib update would not stop the window packet from processing.
368 lines
15 KiB
XML
368 lines
15 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>
|
|
<parent>
|
|
<groupId>org.geysermc</groupId>
|
|
<artifactId>geyser-parent</artifactId>
|
|
<version>2.0.2-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>core</artifactId>
|
|
|
|
<properties>
|
|
<adventure.version>4.9.3</adventure.version>
|
|
<fastutil.version>8.5.2</fastutil.version>
|
|
<jackson.version>2.12.4</jackson.version>
|
|
<netty.version>4.1.66.Final</netty.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.geysermc</groupId>
|
|
<artifactId>ap</artifactId>
|
|
<version>2.0.2-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.geysermc</groupId>
|
|
<artifactId>geyser-api</artifactId>
|
|
<version>2.0.2-SNAPSHOT</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.geysermc</groupId>
|
|
<artifactId>common</artifactId>
|
|
<version>2.0.2-SNAPSHOT</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- Jackson JSON and YAML serialization -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>29.0-jre</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- fastutil maps -->
|
|
<dependency>
|
|
<groupId>com.nukkitx</groupId>
|
|
<artifactId>nbt</artifactId>
|
|
<!-- Used for key/value interning -->
|
|
<version>2.1.0</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-int-int-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-int-long-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-int-byte-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-int-boolean-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-object-int-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.fastutil</groupId>
|
|
<artifactId>fastutil-object-object-maps</artifactId>
|
|
<version>${fastutil.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- Network libraries -->
|
|
<dependency>
|
|
<groupId>org.java-websocket</groupId>
|
|
<artifactId>Java-WebSocket</artifactId>
|
|
<version>1.5.1</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.CloudburstMC.Protocol</groupId>
|
|
<artifactId>bedrock-v486</artifactId>
|
|
<version>0cd24c0</version>
|
|
<scope>compile</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.nukkitx.network</groupId>
|
|
<artifactId>raknet</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>com.nukkitx</groupId>
|
|
<artifactId>nbt</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.nukkitx.network</groupId>
|
|
<artifactId>raknet</artifactId>
|
|
<version>1.6.28-20211202.034102-5</version>
|
|
<scope>compile</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.GeyserMC</groupId>
|
|
<artifactId>MCAuthLib</artifactId>
|
|
<version>d9d773e</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.GeyserMC</groupId>
|
|
<artifactId>MCProtocolLib</artifactId>
|
|
<version>0771504</version>
|
|
<scope>compile</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.github.GeyserMC</groupId>
|
|
<artifactId>packetlib</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>com.github.GeyserMC</groupId>
|
|
<artifactId>mcauthlib</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.steveice10</groupId>
|
|
<artifactId>packetlib</artifactId>
|
|
<version>2.1-SNAPSHOT</version>
|
|
<scope>compile</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-all</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<!-- This is still experimental - additionally, it could only really benefit standalone -->
|
|
<groupId>io.netty.incubator</groupId>
|
|
<artifactId>netty-incubator-transport-native-io_uring</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-resolver-dns</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-resolver-dns-native-macos</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
<classifier>osx-x86_64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-codec-haproxy</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- Network dependencies we are updating ourselves -->
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-handler</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
<classifier>linux-x86_64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
<classifier>linux-aarch_64</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.netty</groupId>
|
|
<artifactId>netty-transport-native-kqueue</artifactId>
|
|
<version>${netty.version}</version>
|
|
<scope>compile</scope>
|
|
<classifier>osx-x86_64</classifier>
|
|
</dependency>
|
|
<!-- Adventure text serialization -->
|
|
<dependency>
|
|
<groupId>net.kyori</groupId>
|
|
<artifactId>adventure-text-serializer-legacy</artifactId>
|
|
<version>${adventure.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.kyori</groupId>
|
|
<artifactId>adventure-text-serializer-plain</artifactId>
|
|
<version>${adventure.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<!-- Other -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/services/javax.annotation.processing.Processor</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>4.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>get-the-git-infos</id>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
|
|
<format>properties</format>
|
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
|
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
|
|
<runOnlyOnce>false</runOnlyOnce>
|
|
<verbose>true</verbose>
|
|
<skipPoms>false</skipPoms>
|
|
<excludeProperties>
|
|
<excludeProperty>git.user.*</excludeProperty>
|
|
<excludeProperty>git.*.user.*</excludeProperty>
|
|
<excludeProperty>git.closest.*</excludeProperty>
|
|
<excludeProperty>git.commit.id.describe</excludeProperty>
|
|
<excludeProperty>git.commit.id.describe-short</excludeProperty>
|
|
<excludeProperty>git.commit.message.short</excludeProperty>
|
|
</excludeProperties>
|
|
<commitIdGenerationMode>flat</commitIdGenerationMode>
|
|
<gitDescribe>
|
|
<always>true</always>
|
|
</gitDescribe>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
<artifactId>replacer</artifactId>
|
|
<version>1.5.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-version</id>
|
|
<phase>process-sources</phase>
|
|
<goals>
|
|
<goal>replace</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includes>
|
|
<include>${project.basedir}/src/main/java/org/geysermc/geyser/GeyserImpl.java</include>
|
|
</includes>
|
|
<replacements>
|
|
<replacement>
|
|
<token>String VERSION = ".*"</token>
|
|
<value>String VERSION = "${project.version} (" + GIT_VERSION + ")"</value>
|
|
</replacement>
|
|
<replacement>
|
|
<token>String GIT_VERSION = ".*"</token>
|
|
<!--suppress UnresolvedMavenProperty -->
|
|
<value>String GIT_VERSION = "git-${git.branch}-${git.commit.id.abbrev}"</value>
|
|
</replacement>
|
|
</replacements>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>remove-version</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>replace</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includes>
|
|
<include>${project.basedir}/src/main/java/org/geysermc/geyser/GeyserImpl.java</include>
|
|
</includes>
|
|
<replacements>
|
|
<replacement>
|
|
<token>String VERSION = ".*"</token>
|
|
<value>String VERSION = "DEV"</value>
|
|
</replacement>
|
|
<replacement>
|
|
<token>String GIT_VERSION = ".*"</token>
|
|
<value>String GIT_VERSION = "DEV"</value>
|
|
</replacement>
|
|
</replacements>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.22.0</version>
|
|
<configuration>
|
|
<!-- Force the right file encoding during unit testing -->
|
|
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|