From 241fbb723b4dd8b5cdf01aa923e4f5fbb1dc9590 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 8 Feb 2019 10:39:48 -0800 Subject: [PATCH] Add a module config, twiddle build to support it. We now have to build with JDK9 or above, but I believe that the built jar files continue to be compatible with JDK 1.7 or above. If this turns out not to be the case, please let me know. --- .travis.yml | 2 +- pom.xml | 29 ++++++++++++++++++++++++++--- src/main/java/module-info.java | 5 +++++ 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 src/main/java/module-info.java diff --git a/.travis.yml b/.travis.yml index caf4b60..db11f5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ sudo: false language: java jdk: - - oraclejdk8 + - oraclejdk9 cache: directories: diff --git a/pom.xml b/pom.xml index 35a0ea8..ea12f70 100644 --- a/pom.xml +++ b/pom.xml @@ -40,11 +40,11 @@ scm:git:git@github.com:samskivert/jmustache.git http://github.com/samskivert/jmustache - + 1.7 UTF-8 @@ -98,7 +98,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.3 + 3.7.0 ${source.level} ${source.level} @@ -116,6 +116,28 @@ **/super/** + + + default-compile + + + module-info.java + + 9 + + + + base-compile + + compile + + + + module-info.java + + + + @@ -181,6 +203,7 @@ org.apache.maven.plugins maven-jar-plugin + 3.1.1 diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..a6dec0a --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,5 @@ +module com.samskivert.mustache { + requires java.base; + + exports com.samskivert.mustache; +}