mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-19 16:46:01 +01:00
151 lines
6.1 KiB
XML
151 lines
6.1 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">
|
|
<parent>
|
|
<artifactId>viaversion-parent</artifactId>
|
|
<groupId>us.myles</groupId>
|
|
<version>3.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<name>viaversion-jar</name>
|
|
<artifactId>viaversion</artifactId>
|
|
|
|
<build>
|
|
<finalName>ViaVersion-${project.version}</finalName>
|
|
<defaultGoal>clean install</defaultGoal>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>.</targetPath>
|
|
<filtering>false</filtering>
|
|
<directory>../</directory>
|
|
<includes>
|
|
<include>LICENSE</include>
|
|
</includes>
|
|
</resource>
|
|
<resource>
|
|
<targetPath>.</targetPath>
|
|
<filtering>true</filtering>
|
|
<directory>src/main/resources/</directory>
|
|
<includes>
|
|
<include>*</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<!-- Write git commit hash into build properties -->
|
|
<plugin>
|
|
<groupId>net.md-5</groupId>
|
|
<artifactId>scriptus</artifactId>
|
|
<version>0.3.2</version>
|
|
<configuration>
|
|
<format>git-ViaVersion-${project.parent.version}:%s</format>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>describe</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<!--suppress MavenModelInspection -->
|
|
<Implementation-Version>${describe}</Implementation-Version>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<!--Relocate all lib we use in order to fix class loading errors if we use different versions
|
|
than already loaded libs (i.e. by Mojang -> gson)-->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.2.2</version>
|
|
<configuration>
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
<minimizeJar>false</minimizeJar>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>com.github.steveice10.opennbt</pattern>
|
|
<shadedPattern>us.myles.viaversion.libs.opennbt</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>com.google.gson</pattern>
|
|
<shadedPattern>us.myles.viaversion.libs.gson</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>javassist</pattern>
|
|
<shadedPattern>us.myles.viaversion.libs.javassist</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>org.yaml.snakeyaml</pattern>
|
|
<shadedPattern>us.myles.viaversion.libs.snakeyaml</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>net.md_5.bungee</pattern>
|
|
<shadedPattern>us.myles.viaversion.libs.bungeecordchat</shadedPattern>
|
|
<includes>
|
|
<include>net.md_5.bungee.api.chat.**</include>
|
|
<include>net.md_5.bungee.api.ChatColor</include>
|
|
<include>net.md_5.bungee.api.ChatMessageType</include>
|
|
<include>net.md_5.bungee.chat.**</include>
|
|
</includes>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-common</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-bukkit</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-bungee</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-fabric</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-sponge</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>us.myles</groupId>
|
|
<artifactId>viaversion-velocity</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
</project>
|