gradle-plugins
gradle-plugins copied to clipboard
jdk {} section is completely ignored:
My build.gradle: https://gist.github.com/knyttl/93b137c09ade0dd348b9b84740792d78
When I gradle run
, I can see it still runs on the system default:
> Task :run FAILED
Exception in thread "main" java.lang.IllegalStateException: This tool must be run on JDK8, was: 13.0.2
at tl.knyt.waterrower.ServiceKt.main(Service.kt:9)
at tl.knyt.waterrower.ServiceKt.main(Service.kt)
> Process 'command '/usr/local/Cellar/openjdk/13.0.2+8_2/libexec/openjdk.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
There seems to be no errors about the JDK section - the same happens when I use the useAdoptOpenJdk8
parameter.
I also tried to unset the JAVA_HOME
parameter with no effect.
see https://github.com/rmee/gradle-plugins/tree/master/jdk-bootstrap
there is:
apply plugin: 'jdk-bootstrap'
jdk {
allowOverride = false
...
}
but when JAVA_HOME is gone, it should work? because it is setting JAVA_HOME.