From 71d3abddf1ab15f193135f3ae3e7ee2393656b63 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 17 Sep 2011 17:39:23 +0000 Subject: [PATCH] Revamped the Maven build to use the Maven Proguard plugin (PITA!) instead of calling out to Ant to do the Proguard build. Running Ant from within Maven (which then runs Maven from within Ant) no longer works as of Maven 3. While I was in here, I changed the build to use the Proguard-ed artifact as the primary artifact, and changed the POM to reflect that none of the dependencies are transitive. --- build.xml | 22 +++------ pom.xml | 119 +++++++++++++++++++++++++++++++---------------- proguard-pom.xml | 14 ------ 3 files changed, 86 insertions(+), 69 deletions(-) delete mode 100644 proguard-pom.xml diff --git a/build.xml b/build.xml index af66c19..6210135 100644 --- a/build.xml +++ b/build.xml @@ -100,17 +100,12 @@ - - + - - - - - - + @@ -126,13 +121,13 @@ - + - + @@ -154,7 +149,7 @@ - @@ -162,10 +157,5 @@ - - - - - diff --git a/pom.xml b/pom.xml index b501ed7..6d20390 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 com.threerings getdown @@ -52,19 +54,18 @@ com.samskivert samskivert 1.2 - compile + true commons-codec commons-codec 1.4 - compile + true jregistrykey jregistrykey 1.0 - compile true @@ -73,6 +74,13 @@ 1.7.1 provided + + java + plugin + 1.5 + system + ${java.home}/lib/plugin.jar + junit junit @@ -105,11 +113,6 @@ UTF-8 - - org.apache.maven.plugins - maven-surefire-plugin - 2.6 - org.apache.maven.plugins maven-javadoc-plugin @@ -120,28 +123,56 @@ - org.apache.maven.plugins - maven-antrun-plugin - 1.6 + com.pyx4me + proguard-maven-plugin + 2.0.4 - - package - package - - - - - - - - - - - - run - - + + package + proguard + + + + net.sf.proguard + proguard + 4.4 + runtime + + + + 4.4 + ${project.build.directory} + ${project.build.finalName}.jar + ${project.build.finalName}.jar + + + + com.samskivert + samskivert + !**/Log4JLogger*,!**/*.java,com/samskivert/Log.class,**/samskivert/io/**, + **/samskivert/swing/**,**/samskivert/text/**,**/samskivert/util/** + + + jregistrykey + jregistrykey + + + commons-codec + commons-codec + + + + true + + + + + + ${rt.jar.path} + + false + org.apache.maven.plugins @@ -155,17 +186,8 @@ - - org.apache.maven.plugins - maven-install-plugin - 2.3.1 - - - org.apache.maven.plugins - maven-deploy-plugin - 2.5 - + @@ -226,5 +248,24 @@ + + + mac + + ${java.home}/../Classes/classes.jar + + + ${java.home}/../Classes/classes.jar + + + + non-mac + + ${java.home}/../lib/rt.jar + + + ${java.home}/../lib/rt.jar + + diff --git a/proguard-pom.xml b/proguard-pom.xml deleted file mode 100644 index 0313441..0000000 --- a/proguard-pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - 4.0.0 - com.threerings - getdown-pro - jar - 1.2-SNAPSHOT - getdown-pro - A dependencies-included version of getdown.jar. - - - - -