From 956c5cdcd119426620926bcf493026f8f04e6b5c Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 11 May 2018 19:39:31 -0700 Subject: [PATCH] Get things mostly building on Java 9. This upgrades a bunch of Maven plugins, upgrades Proguard to 6.0, and adds some fiddly profile stuff to point Proguard at the right set of JDK jmods since rt.jar no longer exists for Java 9, and ignores a bunch more samskivert library stuff since it references Java modules that we don't use (like java.sql). --- pom.xml | 57 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 27b65c7..5ecf14e 100644 --- a/pom.xml +++ b/pom.xml @@ -109,7 +109,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.3 + 3.7.0 1.7 1.7 @@ -127,7 +127,7 @@ org.apache.maven.plugins maven-resources-plugin - 2.7 + 3.0.2 UTF-8 @@ -136,7 +136,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.3 + 3.0.0-M1 true public @@ -147,23 +147,23 @@ com.github.wvengen proguard-maven-plugin - 2.0.8 + 2.0.14 package - proguard + proguard net.sf.proguard proguard-base - 5.1 + 6.0.3 runtime - 5.1 + 6.0.3 ${project.build.directory} ${project.build.finalName}.jar ${project.build.finalName}.jar @@ -172,8 +172,21 @@ com.samskivert samskivert - !**/Log4JLogger*,!**/*.java,com/samskivert/Log.class,**/samskivert/io/**, - **/samskivert/swing/**,**/samskivert/text/**,**/samskivert/util/** + + !**/*.java, + !**/swing/RuntimeAdjust*, + !**/swing/util/ButtonUtil*, + !**/util/CalendarUtil*, + !**/util/Calendars*, + !**/util/Log4JLogger*, + !**/util/PrefsConfig*, + !**/util/SignalUtil*, + com/samskivert/Log.class, + **/samskivert/io/**, + **/samskivert/swing/**, + **/samskivert/text/**, + **/samskivert/util/** + jregistrykey @@ -201,7 +214,7 @@ org.apache.maven.plugins maven-jar-plugin - 2.6 + 3.1.0 @@ -222,7 +235,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.6 + 1.6.8 true false @@ -323,6 +336,28 @@ ${java.home}/lib/rt.jar + + java-9-jdk + + ${java.home}/jmods/java.base.jmod + + + + + com.github.wvengen + proguard-maven-plugin + + + ${java.home}/jmods/java.base.jmod + ${java.home}/jmods/java.desktop.jmod + ${java.home}/jmods/java.logging.jmod + ${java.home}/jmods/jdk.jsobject.jmod + + + + + +