From 344ffef3d9867d55373088682191a122f0f0ca44 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 5 Dec 2018 23:04:41 -0500 Subject: [PATCH] Enable optional source JAR shading via profile shadeSourcesJar mvn clean source:jar install -PshadeSouresJar achieves this goal. If 'source:jar' is not specified the resulting source JAR will not include CraftBukkit sources. Not specifying 'install' will result in an unshaded CraftBukkit source JAR and not include other sources, making it useless for debugging purposes. Shade CraftBukkit sources JAR. Add maven-shade-plugin configuration directives to create sources JAR and shade contents thereof. This ensures when source:jar goal is run, relocated CraftBukkit source files are also relocated for debugging and final code review purposes. By: Javacraft --- paper-server/pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/pom.xml b/paper-server/pom.xml index 6810e2e9e5..edbcdfd007 100644 --- a/paper-server/pom.xml +++ b/paper-server/pom.xml @@ -154,6 +154,7 @@ shade + ${shadeSourcesJar} joptsimple @@ -220,6 +221,13 @@ + + shadeSourcesJar + + true + true + + development