2016-02-28 23:44:33 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2016-03-06 16:36:54 +01:00
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2016-02-28 23:44:33 +01:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<groupId>us.myles</groupId>
|
2016-03-06 16:36:54 +01:00
|
|
|
<artifactId>viaversion</artifactId>
|
2016-06-15 20:47:10 +02:00
|
|
|
<version>0.9.4-SNAPSHOT</version>
|
2016-03-06 16:36:54 +01:00
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<name>ViaVersion</name>
|
|
|
|
<description>Allow 1.8 clients to join 1.9 bukkit servers!</description>
|
|
|
|
<inceptionYear>2016</inceptionYear>
|
|
|
|
<url>https://www.spigotmc.org/resources/viaversion.19254/</url>
|
|
|
|
|
|
|
|
<prerequisites>
|
|
|
|
<maven>3.3.3</maven>
|
|
|
|
</prerequisites>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<!-- Project Properties -->
|
|
|
|
<projectEncoding>UTF-8</projectEncoding>
|
|
|
|
<project.build.sourceEncoding>${projectEncoding}</project.build.sourceEncoding>
|
|
|
|
<project.build.outputEncoding>${projectEncoding}</project.build.outputEncoding>
|
|
|
|
<jdkVersion>1.7</jdkVersion>
|
|
|
|
<!-- <testJreVersion>1.7</testJreVersion> -->
|
|
|
|
|
|
|
|
<!-- Change Bukkit Version HERE! -->
|
|
|
|
<bukkitVersion>1.8.8-R0.1-SNAPSHOT</bukkitVersion>
|
|
|
|
</properties>
|
|
|
|
|
2016-02-28 23:44:33 +01:00
|
|
|
<build>
|
2016-03-06 16:36:54 +01:00
|
|
|
<finalName>${project.name}-${project.version}</finalName>
|
|
|
|
<sourceDirectory>src/main/java</sourceDirectory>
|
2016-05-18 00:40:00 +02:00
|
|
|
<defaultGoal>clean install</defaultGoal>
|
2016-03-06 16:36:54 +01:00
|
|
|
<!-- <testSourceDirectory>src/test/java</testSourceDirectory> -->
|
|
|
|
|
|
|
|
<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>
|
2016-03-07 15:43:31 +01:00
|
|
|
<!--
|
2016-03-06 16:36:54 +01:00
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
2016-03-07 15:43:31 +01:00
|
|
|
-->
|
2016-03-06 16:36:54 +01:00
|
|
|
|
2016-02-28 23:44:33 +01:00
|
|
|
<plugins>
|
2016-03-06 16:36:54 +01:00
|
|
|
<!-- Maven Java Compiler -->
|
2016-03-03 21:13:49 +01:00
|
|
|
<plugin>
|
2016-03-06 16:36:54 +01:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.5.1</version>
|
|
|
|
<configuration>
|
2016-03-07 16:22:11 +01:00
|
|
|
<source>${jdkVersion}</source>
|
|
|
|
<target>${jdkVersion}</target>
|
2016-03-07 15:43:31 +01:00
|
|
|
<!--
|
2016-03-06 16:36:54 +01:00
|
|
|
<testSource>${testJreVersion}</testSource>
|
|
|
|
<testTarget>${testJreVersion}</testTarget>
|
2016-03-07 15:43:31 +01:00
|
|
|
-->
|
2016-03-06 16:36:54 +01:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!-- Unit Test Plugin
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.19.1</version>
|
|
|
|
<configuration>
|
|
|
|
<argLine>-Dfile.encoding=${projectEncoding} ${argLine}</argLine>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
-->
|
|
|
|
<!-- Libs Shading and Relocation -->
|
|
|
|
<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)-->
|
2016-03-03 21:13:49 +01:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2016-03-06 16:36:54 +01:00
|
|
|
<version>2.4.3</version>
|
2016-03-03 21:13:49 +01:00
|
|
|
<configuration>
|
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
2016-03-06 16:36:54 +01:00
|
|
|
<minimizeJar>false</minimizeJar>
|
2016-03-07 15:43:31 +01:00
|
|
|
<relocations>
|
|
|
|
<relocation>
|
|
|
|
<pattern>org.spacehq.opennbt</pattern>
|
|
|
|
<shadedPattern>us.myles.viaversion.libs.opennbt</shadedPattern>
|
|
|
|
</relocation>
|
2016-03-18 19:14:58 +01:00
|
|
|
<relocation>
|
|
|
|
<pattern>com.google.gson</pattern>
|
|
|
|
<shadedPattern>us.myles.viaversion.libs.gson</shadedPattern>
|
|
|
|
</relocation>
|
2016-04-27 22:57:13 +02:00
|
|
|
<relocation>
|
|
|
|
<pattern>org.javassist</pattern>
|
|
|
|
<shadedPattern>us.myles.viaversion.libs.javassist</shadedPattern>
|
|
|
|
</relocation>
|
2016-03-07 15:43:31 +01:00
|
|
|
</relocations>
|
2016-03-03 21:13:49 +01:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-02-28 23:44:33 +01:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2016-03-06 16:36:54 +01:00
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<!-- SpigotMC Repo (Bukkit API) -->
|
|
|
|
<repository>
|
|
|
|
<id>spigot-repo</id>
|
|
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
|
|
|
|
</repository>
|
|
|
|
|
2016-03-07 15:43:31 +01:00
|
|
|
<!-- SpaceHQ Repo-->
|
2016-03-06 16:36:54 +01:00
|
|
|
<repository>
|
|
|
|
<id>spacehq-repo</id>
|
|
|
|
<url>https://repo.spacehq.org/content/repositories/releases/</url>
|
|
|
|
</repository>
|
2016-06-03 20:49:06 +02:00
|
|
|
|
|
|
|
<!-- Bungee repo -->
|
|
|
|
<repository>
|
|
|
|
<id>bungeecord-repo</id>
|
|
|
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
|
|
|
</repository>
|
2016-03-06 16:36:54 +01:00
|
|
|
</repositories>
|
|
|
|
|
2016-02-28 23:44:33 +01:00
|
|
|
<dependencies>
|
2016-03-06 16:36:54 +01:00
|
|
|
<!-- Bukkit API, http://www.spigotmc.org/ or http://bukkit.org/ -->
|
2016-03-03 21:13:49 +01:00
|
|
|
<dependency>
|
2016-02-29 18:35:55 +01:00
|
|
|
<groupId>org.bukkit</groupId>
|
|
|
|
<artifactId>bukkit</artifactId>
|
2016-03-06 16:36:54 +01:00
|
|
|
<version>${bukkitVersion}</version>
|
2016-02-29 18:35:55 +01:00
|
|
|
<scope>provided</scope>
|
2016-03-06 16:36:54 +01:00
|
|
|
<optional>true</optional>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>persistence-api</artifactId>
|
|
|
|
<groupId>javax.persistence</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
|
2016-04-27 22:57:13 +02:00
|
|
|
<!-- Javassist (Bytecode Library) -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.javassist</groupId>
|
|
|
|
<artifactId>javassist</artifactId>
|
|
|
|
<version>3.20.0-GA</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2016-03-07 15:43:31 +01:00
|
|
|
<!-- NBT Edit Library -->
|
2016-03-06 16:36:54 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.spacehq</groupId>
|
|
|
|
<artifactId>opennbt</artifactId>
|
|
|
|
<version>1.0</version>
|
2016-03-07 15:43:31 +01:00
|
|
|
<scope>compile</scope>
|
2016-03-06 16:36:54 +01:00
|
|
|
<optional>true</optional>
|
2016-02-29 18:35:55 +01:00
|
|
|
</dependency>
|
2016-03-06 16:36:54 +01:00
|
|
|
|
2016-03-18 19:14:58 +01:00
|
|
|
<!-- GSON (JSON Library) -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<version>2.6.2</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2016-03-07 15:43:31 +01:00
|
|
|
<!-- Netty (Network Library) -->
|
2016-02-29 18:35:55 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
<artifactId>netty-all</artifactId>
|
|
|
|
<version>4.0.20.Final</version>
|
|
|
|
<scope>provided</scope>
|
2016-03-06 16:36:54 +01:00
|
|
|
<optional>true</optional>
|
2016-02-28 23:44:33 +01:00
|
|
|
</dependency>
|
2016-03-18 19:14:58 +01:00
|
|
|
|
2016-03-07 15:43:31 +01:00
|
|
|
<!-- Lombok -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>1.16.6</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-06-03 20:49:06 +02:00
|
|
|
|
|
|
|
<!--Bungeecord-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.md-5</groupId>
|
|
|
|
<artifactId>bungeecord-api</artifactId>
|
|
|
|
<version>1.9-SNAPSHOT</version>
|
2016-06-08 17:02:13 +02:00
|
|
|
<scope>provided</scope>
|
2016-06-03 20:49:06 +02:00
|
|
|
</dependency>
|
2016-02-28 23:44:33 +01:00
|
|
|
</dependencies>
|
2016-02-29 21:38:54 +01:00
|
|
|
</project>
|