summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavacraft <frelling@java-craft.com>2018-12-05 23:04:41 -0500
committermd_5 <git@md-5.net>2018-12-07 13:00:03 +1100
commit068dab5be3e2f9f5086b0b61522a30eb8302c11c (patch)
treef1ef6a2b5a1d2f82aea8b05caf0d7f12fd629dc9
parentad7b00b762bb0847049cde1abb0fc2d09ba48b1e (diff)
downloadcraftbukkit-068dab5be3e2f9f5086b0b61522a30eb8302c11c.tar
craftbukkit-068dab5be3e2f9f5086b0b61522a30eb8302c11c.tar.gz
craftbukkit-068dab5be3e2f9f5086b0b61522a30eb8302c11c.tar.lz
craftbukkit-068dab5be3e2f9f5086b0b61522a30eb8302c11c.tar.xz
craftbukkit-068dab5be3e2f9f5086b0b61522a30eb8302c11c.zip
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.
-rw-r--r--pom.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 6810e2e9..edbcdfd0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,6 +154,7 @@
<goal>shade</goal>
</goals>
<configuration>
+ <createSourcesJar>${shadeSourcesJar}</createSourcesJar>
<relocations>
<relocation>
<pattern>joptsimple</pattern>
@@ -221,6 +222,13 @@
<profiles>
<profile>
+ <id>shadeSourcesJar</id>
+ <properties>
+ <shadeSourcesJar>true</shadeSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ </properties>
+ </profile>
+ <profile>
<id>development</id>
<build>
<plugins>