You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2017/10/24 11:20:53 UTC

tapestry-5 git commit: make tests work on Java 9

Repository: tapestry-5
Updated Branches:
  refs/heads/master 5321b3d31 -> 3f24210f1


make tests work on Java 9


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/3f24210f
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/3f24210f
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/3f24210f

Branch: refs/heads/master
Commit: 3f24210f1d6a1893941ca3ed103ba6db3527d95d
Parents: 5321b3d
Author: Jochen Kemnade <jk...@apache.org>
Authored: Tue Oct 24 13:20:12 2017 +0200
Committer: Jochen Kemnade <jk...@apache.org>
Committed: Tue Oct 24 13:20:12 2017 +0200

----------------------------------------------------------------------
 build.gradle | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3f24210f/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index de23bb7..1fa8fd6 100755
--- a/build.gradle
+++ b/build.gradle
@@ -116,6 +116,8 @@ dependencies {
     binaries "org.antlr:antlr-runtime:3.3", { transitive = false }
 }
 
+def isJava9 = System.properties['java.version'].startsWith('9')
+
 subprojects {
 
     def jdkVersion = System.properties['java.version']
@@ -190,6 +192,9 @@ subprojects {
         systemProperties["java.io.tmpdir"] = temporaryDir.absolutePath
 
         jvmArgs("-Dfile.encoding=UTF-8")
+        if (isJava9){
+          jvmArgs += ["--add-modules", "java.xml.ws.annotation"]
+        }
 
         environment.LANG = 'en_US.UTF-8'