mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 04:35:12 +01:00
Don't relocate libraries that are available in spigot
This commit is contained in:
parent
ee962bce11
commit
0cb0bbcd37
164
pom.xml
164
pom.xml
@ -136,86 +136,92 @@
|
|||||||
<source>1.7</source>
|
<source>1.7</source>
|
||||||
<target>${javaVersion}</target>
|
<target>${javaVersion}</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
<version>2.4.3</version>
|
<version>2.4.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
<minimizeJar>false</minimizeJar>
|
<minimizeJar>false</minimizeJar>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>org.mcstats</pattern>
|
<pattern>org.mcstats</pattern>
|
||||||
<shadedPattern>fr.xephi.authme</shadedPattern>
|
<shadedPattern>fr.xephi.authme</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>org.apache</pattern>
|
<pattern>org.apache</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.apache</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.apache</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>javax</pattern>
|
<pattern>javax.mail</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.javax</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.javax.mail</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.sun</pattern>
|
<pattern>javax.activation</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.sun</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.javax.activation</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.google</pattern>
|
<pattern>com.sun</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.sun</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.zaxxer.hikari</pattern>
|
<pattern>com.zaxxer.hikari</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>org.slf4j</pattern>
|
<pattern>org.slf4j</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.slf4j</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.slf4j</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.maxmind.geoip</pattern>
|
<pattern>com.maxmind.geoip</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.geoip</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.geoip</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>net.ricecode.similarity</pattern>
|
<pattern>net.ricecode.similarity</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>spigot-shade</id>
|
<id>spigot-shade</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>shade</goal>
|
<goal>shade</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputFile>target/${jarName}-spigot.jar</outputFile>
|
<artifactSet>
|
||||||
<artifactSet>
|
<excludes>
|
||||||
<excludes>
|
<exclude>com.google.guava:guava</exclude>
|
||||||
<exclude>com.google.guava:guava</exclude>
|
<exclude>com.google.code.gson:gson</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
</configuration>
|
<outputFile>target/${jarName}-spigot.jar</outputFile>
|
||||||
</execution>
|
</configuration>
|
||||||
<execution>
|
</execution>
|
||||||
<id>legacy-shade</id>
|
<execution>
|
||||||
<phase>package</phase>
|
<id>legacy-shade</id>
|
||||||
<goals>
|
<phase>package</phase>
|
||||||
<goal>shade</goal>
|
<goals>
|
||||||
</goals>
|
<goal>shade</goal>
|
||||||
<configuration>
|
</goals>
|
||||||
<outputFile>target/${jarName}-legacy.jar</outputFile>
|
<configuration>
|
||||||
</configuration>
|
<relocations>
|
||||||
</execution>
|
<relocation>
|
||||||
</executions>
|
<pattern>com.google</pattern>
|
||||||
</plugin>
|
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
||||||
|
</relocation>
|
||||||
<plugin>
|
</relocations>
|
||||||
<groupId>org.jacoco</groupId>
|
<outputFile>target/${jarName}-legacy.jar</outputFile>
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
<version>0.7.5.201505241946</version>
|
<version>0.7.5.201505241946</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
Loading…
Reference in New Issue
Block a user