groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <>
Subject finally success again on JDK9
Date Thu, 06 Apr 2017 22:58:13 GMT
Hi all,

So today I finally found out how to run our build on a recent JDK9:

The part I could really kick myself... and a lot of gradle people for is 
the usage of _JAVA_OPTIONS. This is can be used to set JVM arguments to 
daemons and the initial forked JVM used by gradle. So I am using

export _JAVA_OPTIONS='-XX:+IgnoreUnrecognizedVMOptions 

and org.gradle.jvmargs unset in

The option --permit-illegal-access is new in jigsaw 163 and prevents us 
from having to use add-opens for each an every module.  But at the prize 
of having a ton of messages like this one:

WARNING: Illegal access by 
(file:/home/blackdrag/coding/groovy/commit/target/classes/main/) to 
java.util.LinkedHashMap$LinkedKeySet(java.util.LinkedHashMap) (permitted 
by --permit-illegal-access)

bye Jochen

View raw message