Closed bmv126 closed 2 months ago
It looks like a gradle issue?
Does not look like gradle issue.
Instead of commenting out the javac.source and javac.target variables, if I just set it to empty value like below
javac.source:
javac.target:
It works as expected. The --release
does not get added and -source -target
gets added and with this --add-exports can be added.
so we can close this?
I am using 7.0.0 bnd gradle plugin.
In my cnf/build.bnd, javac source and javac target are not set.
I am using jdk21 to compile the src code with JAVA_HOME set to jdk 21 binary path.
However when I run the gradlew command I see below getting printed in compiler arguments and debug logs:
From this code, I was thinking if we do not have javac.source and javac.target set in build.bnd, --release will not be added to the compiler arguments, but it is still getting added.
As I am trying to use
--add-exports
option,it is causing conflict with --release and build is failing.How to avoid adding the --release option in the compiler arguments ?