Shading + relocating

This commit is contained in:
Niels Vergucht 2018-12-08 03:00:42 +01:00 committed by Brianna O'Keefe
parent c1fbf407c1
commit 86f64b91f8
3 changed files with 220 additions and 70 deletions

151
dependency-reduced-pom.xml Normal file
View File

@ -0,0 +1,151 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.songoda</groupId>
<artifactId>EpicBuckets</artifactId>
<version>1.0.2</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<defaultGoal>clean package</defaultGoal>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<excludes>
<exclude>org.spigotmc:spigot</exclude>
<exclude>com.songoda:arconix</exclude>
<exclude>net.milkbowl.vault:VaultAPI</exclude>
<exclude>me.ryanhamshire:GriefPrevention</exclude>
<exclude>com.sk89q</exclude>
<exclude>com:plotsquared</exclude>
<exclude>me.markeh:factionsframework</exclude>
<exclude>com.massivecraft</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>co.aikar.commands</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.acf</shadedPattern>
</relocation>
<relocation>
<pattern>de.tr7zw.itemnbtapi</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.itemnbtapi</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>11_private</id>
<url>http://repo.songoda.com/repository/private</url>
</repository>
<repository>
<id>22_vault</id>
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>
<repository>
<id>3_aikar</id>
<url>https://repo.aikar.co/content/groups/aikar/</url>
</repository>
<repository>
<id>44_jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.13.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.songoda</groupId>
<artifactId>arconix</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
<version>LATEST</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>bukkit</artifactId>
<groupId>org.bukkit</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>me.ryanhamshire</groupId>
<artifactId>GriefPrevention</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldguard</artifactId>
<version>6.2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com</groupId>
<artifactId>plotsquared</artifactId>
<version>RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.markeh</groupId>
<artifactId>factionsframework</artifactId>
<version>1.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.massivecraft</groupId>
<artifactId>factions</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.massivecraft</groupId>
<artifactId>factionsuuid</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

Binary file not shown.

139
pom.xml
View File

@ -6,25 +6,6 @@
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>EpicAnchors-API/src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<version>3.6.1</version>
<groupId>org.apache.maven.plugins</groupId>
@ -37,29 +18,83 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<includes>
<include>fr.minuskube.inv:smart-invs</include>
<include>co.aikar:acf-paper</include>
<include>me.lucko:helper</include>
<include>com.github.tr7zw:Item-NBT-API:*</include>
<include>org.apache.commons:commons-lang3</include>
<include>co.aikar:acf-bukkit</include>
<include>co.aikar:acf-core</include>
<include>co.aikar:Table</include>
<include>co.aikar:locales</include>
<include>co.aikar:minecraft-timings</include>
<include>net.jodah:expiringmap</include>
<include>org.jetbrains:annotations</include>
<include>com.flowpowered:flow-math</include>
<include>com.google.code.findbugs</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.intellij</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.intellij</shadedPattern>
</relocation>
<relocation>
<pattern>javax.annotation</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.annotation</shadedPattern>
</relocation>
<relocation>
<pattern>me.lucko.helper</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.helper</shadedPattern>
</relocation>
<relocation>
<pattern>org.jetbrains</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.jetbrains</shadedPattern>
</relocation>
<relocation>
<pattern>com.flowpowered</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.flowpowered</shadedPattern>
</relocation>
<relocation>
<pattern>net.jodah</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.jodah</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.google</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.apache</shadedPattern>
</relocation>
<relocation>
<pattern>fr.minuskube.inv</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.inv</shadedPattern>
</relocation>
<relocation>
<pattern>co.aikar</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.acf</shadedPattern>
</relocation>
<relocation>
<pattern>com.github.tr7zw</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.itemnbtapi</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<relocations>
<relocation>
<pattern>co.aikar.commands</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.acf</shadedPattern>
</relocation>
<relocation>
<pattern>de.tr7zw.itemnbtapi</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.itemnbtapi</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>
<resources>
@ -125,12 +160,6 @@
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org</groupId>
<artifactId>kingdoms</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
@ -161,42 +190,12 @@
<version>RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.palmergames.bukkit</groupId>
<artifactId>towny</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.wasteofplastic</groupId>
<artifactId>askyblock</artifactId>
<version>3.0.6.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>us.talabrek</groupId>
<artifactId>ultimateskyblock</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.markeh</groupId>
<artifactId>factionsframework</artifactId>
<version>1.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>br.net.fabiozumbi12</groupId>
<artifactId>RedProtect</artifactId>
<version>7.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.songoda</groupId>
<artifactId>epicspawners</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.massivecraft</groupId>
<artifactId>factions</artifactId>