Skip to content

Use Gradle Daemon JVM criteria to ensure correct JDK for build script compilation #7

@Marcono1234

Description

@Marcono1234

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions