mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user