mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 12:41:50 +01:00
Refactor CraftBukkit dependencies. Fixes BUKKIT-2329
The maven shade plugin has the ability to change the namespace for included dependencies and packages. This change is being implemented to remove all conflicts with any possible libraries in an execution environment. The only dependencies to be refactored are specific to CraftBukkit. To refactor dependencies included with Bukkit breaks any plugin compiled against those specific dependencies, especially ebeans--an API specifically encouraged for database management.
This commit is contained in:
parent
dcd01bf0c0
commit
9580c3e39a
1 changed files with 38 additions and 0 deletions
38
pom.xml
38
pom.xml
|
@ -222,6 +222,44 @@
|
|||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.bouncycastle</pattern>
|
||||
<shadedPattern>net.minecraft.org.bouncycastle</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>joptsimple</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>jline</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.fusesource</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.org.fusesource</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.sqlite</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.org.sqlite</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.ibex</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.org.ibex</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>com.mysql</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.com.mysql</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.gjt</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.org.gjt</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>com.google.gson</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.com.google.gson</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<artifactSet>
|
||||
<excludes>
|
||||
<exclude>junit:junit</exclude>
|
||||
|
|
Loading…
Reference in a new issue