Open wadoon opened 6 years ago
It seems, that --add-exports definitions are currently not used for JavaCompile.
--add-exports
Following configuration does not effect the compilerArgs:
compilerArgs
javaModule.hacks { exports("javafx.graphics","com.sun.javafx.scene.input",javaModule.name) exports("javafx.graphics", "com.sun.javafx.css", javaModule.name) }
Following snippet is a workaround:
compileJava { doFirst{ def cli = new JigsawCLI("") javaModule.hacks.applyHacks(cli) def args = cli.generateArgs() args.remove(0) args.remove(0) options.compilerArgs.addAll(args) } }
Plugin version: 0.3.1, Gradle: 4.7, Java 10.
It seems, that
--add-exports
definitions are currently not used for JavaCompile.Following configuration does not effect the
compilerArgs
:Following snippet is a workaround:
Plugin version: 0.3.1, Gradle: 4.7, Java 10.