Closed devminded closed 3 years ago
Issue: "Created-By" and "Build-Java-Version" is written as the java runtime used to execute Gradle instead of the version specified in the toolchain block.
JAVA_HOME: "AdoptOpenJDK 14" Gradle: Wrapper (7.1.1)
Gradle build with:
java { withSourcesJar() toolchain { languageVersion = JavaLanguageVersion.of(16) } }
Expected:
Created-By=16.x.x (whatever comes from tool-chain, if specified) Build-Java-Version=16.x.x X-Compile-Target-JDK=16 X-Compile-Source-JDK=16
Result:
Created-By=14.0.2+12 (AdoptOpenJDK) Build-Java-Version=14.0.2 X-Compile-Target-JDK=16 X-Compile-Source-JDK=16
Wow, that was fast. 10.0.0 works like a charm. Thank you. This will make our auditors less unhappy.
Issue: "Created-By" and "Build-Java-Version" is written as the java runtime used to execute Gradle instead of the version specified in the toolchain block.
JAVA_HOME: "AdoptOpenJDK 14" Gradle: Wrapper (7.1.1)
Gradle build with:
Expected:
Result: