Update Jar metadata to make Gradle build reproducible

This commit makes use of the Java specification version in the Jar
metadata to make build easier to reproduce on a different environment.

Closes gh-37250
This commit is contained in:
Brian Clozel
2026-09-07 09:59:12 +02:00
parent 486db005a1
commit 26174aa9a0
+1 -2
View File
@@ -43,8 +43,7 @@ jar {
manifest.attributes["Implementation-Title"] = project.name
manifest.attributes["Implementation-Version"] = project.version
manifest.attributes["Automatic-Module-Name"] = project.name.replace('-', '.') // for Jigsaw
manifest.attributes["Created-By"] =
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
manifest.attributes["Build-Jdk-Spec"] = "${System.getProperty("java.specification.version")}"
from("${rootDir}/framework-docs/src/docs/dist") {
include "license.txt"