From 068dab5be3e2f9f5086b0b61522a30eb8302c11c Mon Sep 17 00:00:00 2001 From: Javacraft 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. --- pom.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pom.xml b/pom.xml index 6810e2e9e5..edbcdfd007 100644 --- a/pom.xml +++ b/pom.xml @@ -154,6 +154,7 @@ shade + ${shadeSourcesJar} joptsimple @@ -220,6 +221,13 @@ + + shadeSourcesJar + + true + true + + development