From 26174aa9a007ad209ed74ca4e9ab334ab5f47440 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 7 Sep 2026 09:59:12 +0200 Subject: [PATCH] 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 --- gradle/spring-module.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gradle/spring-module.gradle b/gradle/spring-module.gradle index 7aa94dcbcb0..2bd83cf11e4 100644 --- a/gradle/spring-module.gradle +++ b/gradle/spring-module.gradle @@ -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"