Myles | 67b31c5 | 2016-02-28 22:44:33 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 2 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Myles | 67b31c5 | 2016-02-28 22:44:33 +0000 | [diff] [blame] | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <groupId>us.myles</groupId> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 8 | <artifactId>viaversion</artifactId> |
Myles | 0376602 | 2016-03-23 14:00:48 +0000 | [diff] [blame] | 9 | <version>0.7.0-ALPHA</version> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 10 | <packaging>jar</packaging> |
| 11 | |
| 12 | <name>ViaVersion</name> |
| 13 | <description>Allow 1.8 clients to join 1.9 bukkit servers!</description> |
| 14 | <inceptionYear>2016</inceptionYear> |
| 15 | <url>https://www.spigotmc.org/resources/viaversion.19254/</url> |
| 16 | |
| 17 | <prerequisites> |
| 18 | <maven>3.3.3</maven> |
| 19 | </prerequisites> |
| 20 | |
| 21 | <properties> |
| 22 | <!-- Project Properties --> |
| 23 | <projectEncoding>UTF-8</projectEncoding> |
| 24 | <project.build.sourceEncoding>${projectEncoding}</project.build.sourceEncoding> |
| 25 | <project.build.outputEncoding>${projectEncoding}</project.build.outputEncoding> |
| 26 | <jdkVersion>1.7</jdkVersion> |
| 27 | <!-- <testJreVersion>1.7</testJreVersion> --> |
| 28 | |
| 29 | <!-- Change Bukkit Version HERE! --> |
| 30 | <bukkitVersion>1.8.8-R0.1-SNAPSHOT</bukkitVersion> |
| 31 | </properties> |
| 32 | |
Myles | 67b31c5 | 2016-02-28 22:44:33 +0000 | [diff] [blame] | 33 | <build> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 34 | <finalName>${project.name}-${project.version}</finalName> |
| 35 | <sourceDirectory>src/main/java</sourceDirectory> |
| 36 | <!-- <testSourceDirectory>src/test/java</testSourceDirectory> --> |
| 37 | |
| 38 | <resources> |
| 39 | <resource> |
| 40 | <targetPath>.</targetPath> |
| 41 | <filtering>false</filtering> |
| 42 | <directory>.</directory> |
| 43 | <includes> |
| 44 | <include>LICENSE</include> |
| 45 | </includes> |
| 46 | </resource> |
| 47 | <resource> |
| 48 | <targetPath>.</targetPath> |
| 49 | <filtering>true</filtering> |
| 50 | <directory>src/main/resources/</directory> |
| 51 | <includes> |
| 52 | <include>*</include> |
| 53 | </includes> |
| 54 | </resource> |
| 55 | </resources> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 56 | <!-- |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 57 | <testResources> |
| 58 | <testResource> |
| 59 | <directory>src/test/resources</directory> |
| 60 | </testResource> |
| 61 | </testResources> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 62 | --> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 63 | |
Myles | 67b31c5 | 2016-02-28 22:44:33 +0000 | [diff] [blame] | 64 | <plugins> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 65 | <!-- Maven Java Compiler --> |
Paulomart | 00df80e | 2016-03-03 21:13:49 +0100 | [diff] [blame] | 66 | <plugin> |
| 67 | <groupId>org.apache.maven.plugins</groupId> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 68 | <artifactId>maven-compiler-plugin</artifactId> |
| 69 | <version>3.5.1</version> |
| 70 | <configuration> |
Phenomax | 1aea000 | 2016-03-07 16:22:11 +0100 | [diff] [blame] | 71 | <source>${jdkVersion}</source> |
| 72 | <target>${jdkVersion}</target> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 73 | <!-- |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 74 | <testSource>${testJreVersion}</testSource> |
| 75 | <testTarget>${testJreVersion}</testTarget> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 76 | --> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 77 | </configuration> |
| 78 | </plugin> |
| 79 | <!-- Unit Test Plugin |
| 80 | <plugin> |
| 81 | <groupId>org.apache.maven.plugins</groupId> |
| 82 | <artifactId>maven-surefire-plugin</artifactId> |
| 83 | <version>2.19.1</version> |
| 84 | <configuration> |
| 85 | <argLine>-Dfile.encoding=${projectEncoding} ${argLine}</argLine> |
| 86 | </configuration> |
| 87 | </plugin> |
| 88 | --> |
| 89 | <!-- Libs Shading and Relocation --> |
| 90 | <plugin> |
| 91 | <!--Relocate all lib we use in order to fix class loading errors if we use different versions |
| 92 | than already loaded libs (i.e. by Mojang -> gson)--> |
| 93 | <groupId>org.apache.maven.plugins</groupId> |
Paulomart | 00df80e | 2016-03-03 21:13:49 +0100 | [diff] [blame] | 94 | <artifactId>maven-shade-plugin</artifactId> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 95 | <version>2.4.3</version> |
Paulomart | 00df80e | 2016-03-03 21:13:49 +0100 | [diff] [blame] | 96 | <configuration> |
| 97 | <createDependencyReducedPom>false</createDependencyReducedPom> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 98 | <minimizeJar>false</minimizeJar> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 99 | <relocations> |
| 100 | <relocation> |
| 101 | <pattern>org.spacehq.opennbt</pattern> |
| 102 | <shadedPattern>us.myles.viaversion.libs.opennbt</shadedPattern> |
| 103 | </relocation> |
Myles | 11f3844 | 2016-03-18 18:14:58 +0000 | [diff] [blame] | 104 | <relocation> |
| 105 | <pattern>com.google.gson</pattern> |
| 106 | <shadedPattern>us.myles.viaversion.libs.gson</shadedPattern> |
| 107 | </relocation> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 108 | </relocations> |
Paulomart | 00df80e | 2016-03-03 21:13:49 +0100 | [diff] [blame] | 109 | </configuration> |
| 110 | <executions> |
| 111 | <execution> |
| 112 | <phase>package</phase> |
| 113 | <goals> |
| 114 | <goal>shade</goal> |
| 115 | </goals> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
Myles | 67b31c5 | 2016-02-28 22:44:33 +0000 | [diff] [blame] | 119 | </plugins> |
| 120 | </build> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 121 | |
Zach Brown | 8e717bb | 2016-02-29 14:38:54 -0600 | [diff] [blame] | 122 | <repositories> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 123 | <!-- SpigotMC Repo (Bukkit API) --> |
Zach Brown | 8e717bb | 2016-02-29 14:38:54 -0600 | [diff] [blame] | 124 | <repository> |
| 125 | <id>spigot-repo</id> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 126 | <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url> |
Zach Brown | 8e717bb | 2016-02-29 14:38:54 -0600 | [diff] [blame] | 127 | </repository> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 128 | |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 129 | <!-- SpaceHQ Repo--> |
Paulomart | 00df80e | 2016-03-03 21:13:49 +0100 | [diff] [blame] | 130 | <repository> |
| 131 | <id>spacehq-repo</id> |
| 132 | <url>https://repo.spacehq.org/content/repositories/releases/</url> |
| 133 | </repository> |
| 134 | </repositories> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 135 | |
| 136 | <dependencies> |
| 137 | <!-- Bukkit API, http://www.spigotmc.org/ or http://bukkit.org/ --> |
| 138 | <dependency> |
| 139 | <groupId>org.bukkit</groupId> |
| 140 | <artifactId>bukkit</artifactId> |
| 141 | <version>${bukkitVersion}</version> |
| 142 | <scope>provided</scope> |
| 143 | <optional>true</optional> |
| 144 | <exclusions> |
| 145 | <exclusion> |
| 146 | <artifactId>junit</artifactId> |
| 147 | <groupId>junit</groupId> |
| 148 | </exclusion> |
| 149 | <exclusion> |
| 150 | <artifactId>gson</artifactId> |
| 151 | <groupId>com.google.code.gson</groupId> |
| 152 | </exclusion> |
| 153 | <exclusion> |
| 154 | <artifactId>persistence-api</artifactId> |
| 155 | <groupId>javax.persistence</groupId> |
| 156 | </exclusion> |
| 157 | </exclusions> |
| 158 | </dependency> |
| 159 | |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 160 | <!-- NBT Edit Library --> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 161 | <dependency> |
| 162 | <groupId>org.spacehq</groupId> |
| 163 | <artifactId>opennbt</artifactId> |
| 164 | <version>1.0</version> |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 165 | <scope>compile</scope> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 166 | <optional>true</optional> |
| 167 | </dependency> |
| 168 | |
Myles | 11f3844 | 2016-03-18 18:14:58 +0000 | [diff] [blame] | 169 | <!-- GSON (JSON Library) --> |
| 170 | <dependency> |
| 171 | <groupId>com.google.code.gson</groupId> |
| 172 | <artifactId>gson</artifactId> |
| 173 | <version>2.6.2</version> |
| 174 | <scope>compile</scope> |
| 175 | <optional>true</optional> |
| 176 | </dependency> |
| 177 | |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 178 | <!-- Netty (Network Library) --> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 179 | <dependency> |
| 180 | <groupId>io.netty</groupId> |
| 181 | <artifactId>netty-all</artifactId> |
| 182 | <version>4.0.20.Final</version> |
| 183 | <scope>provided</scope> |
| 184 | <optional>true</optional> |
| 185 | </dependency> |
Myles | 11f3844 | 2016-03-18 18:14:58 +0000 | [diff] [blame] | 186 | |
Phenomax | 1262847 | 2016-03-07 15:43:31 +0100 | [diff] [blame] | 187 | <!-- Lombok --> |
| 188 | <dependency> |
| 189 | <groupId>org.projectlombok</groupId> |
| 190 | <artifactId>lombok</artifactId> |
| 191 | <version>1.16.6</version> |
| 192 | <scope>provided</scope> |
| 193 | </dependency> |
Gabriele C | b63051a | 2016-03-06 16:36:54 +0100 | [diff] [blame] | 194 | </dependencies> |
Zach Brown | 8e717bb | 2016-02-29 14:38:54 -0600 | [diff] [blame] | 195 | </project> |