On 05/07/2016 22:24, Malachi de Ælfweald wrote:
With:
export _JAVA_OPTIONS="-Djdk.launcher.addmods=ALL-SYSTEM
-Djdk.launcher.addexports.0=java.base/sun.nio.ch=ALL-UNNAMED"
no GRADLE_OPTIONS
no options.compilerArgs in build.gradle
1. The dagger project compiles and runs
2. The neo4j project compiles and runs
3. a JDK8 project still compiles and run
Good to hear you got this working but just to add to what Stephen said
about the system properties. The jdk.launcher.* properties that are you
using here are not documented and are meant to be JDK-internal. They
will be going away soon and so the above will likely need to change to
"--add-modules=ALL-SYSTEM
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED". Also as Stephen noted,
using ALL-SYSTEM is probably not what you want here, at least not if you
only want @Generated.
-Alan