Problem
The build script code in buildSrc uses parts of the main code to be able to convert the language models. This creates the problem that the Gradle Daemon JVM therefore already has to match the JDK requirements for compiling the project main code. The Gradle JVM toolchain functionality does not help because it only applies to subsequent steps after the build script code was compiled.
Also, this could cause mismatching behavior when the code is compiled with a different JDK for language model conversion (the Gradle Daemon JDK) than for the regular build (JDK selected or downloaded for toolchain); though a behavior difference between JDK versions is rather unlikely.
Potential solution
Use the recently added Gradle Daemon JVM criteria feature to specify the requirements for the Daemon JVM.
Alternative
Specify in the README the minimum JDK version needed for building.
Problem
The build script code in
buildSrcuses parts of the main code to be able to convert the language models. This creates the problem that the Gradle Daemon JVM therefore already has to match the JDK requirements for compiling the project main code. The Gradle JVM toolchain functionality does not help because it only applies to subsequent steps after the build script code was compiled.Also, this could cause mismatching behavior when the code is compiled with a different JDK for language model conversion (the Gradle Daemon JDK) than for the regular build (JDK selected or downloaded for toolchain); though a behavior difference between JDK versions is rather unlikely.
Potential solution
Use the recently added Gradle Daemon JVM criteria feature to specify the requirements for the Daemon JVM.
Alternative
Specify in the README the minimum JDK version needed for building.