TAP5-2588: partial support for compiling Tapestry itself in Java 9 & 10
authorBob Harner <bobharner@gmail.com>
Sat, 27 Oct 2018 21:28:48 +0000 (17:28 -0400)
committerBob Harner <bobharner@gmail.com>
Sat, 27 Oct 2018 21:28:48 +0000 (17:28 -0400)
build.gradle

index ea5382b..45872f6 100755 (executable)
@@ -117,6 +117,7 @@ dependencies {
 }
 
 def isJava9 = System.properties['java.version'].startsWith('9')
+def isJava10 = System.properties['java.version'].startsWith('10')
 
 subprojects {
 
@@ -192,8 +193,9 @@ subprojects {
         systemProperties["java.io.tmpdir"] = temporaryDir.absolutePath
 
         jvmArgs("-Dfile.encoding=UTF-8")
-        if (isJava9){
-          jvmArgs += ["--add-modules", "java.xml.ws.annotation"]
+        if (isJava9 || isJava10){
+          // TODO: make these regular dependencies instead
+          jvmArgs += ["--add-modules", "java.xml.ws.annotation,java.xml.bind"]
         }
 
         environment.LANG = 'en_US.UTF-8'