Merge branch '2.3.x' into 2.4.x

Closes gh-25836
pull/26153/head
Andy Wilkinson 4 years ago
commit 38a4f135a9

@ -111,8 +111,8 @@ task fullJar(type: Jar) {
from(sourceSets.main.output) {
into "BOOT-INF/classes"
}
into("") {
from(zipTree(configurations.loader.singleFile)) {
from {
zipTree(configurations.loader.singleFile).matching {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}

@ -11,9 +11,11 @@ def generatedResources = "${buildDir}/generated-resources/main"
configurations {
loader {
extendsFrom dependencyManagement
transitive = false
}
jarmode {
extendsFrom dependencyManagement
transitive = false
}
}
@ -40,11 +42,12 @@ sourceSets {
}
task reproducibleLoaderJar(type: Jar) {
dependsOn configurations.loader
from(zipTree(configurations.loader.incoming.files.filter {it.name.startsWith "spring-boot-loader" }.singleFile)) {
from {
zipTree(configurations.loader.incoming.files.singleFile).matching {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}
}
reproducibleFileOrder = true
preserveFileTimestamps = false
archiveFileName = "spring-boot-loader.jar"
@ -52,11 +55,12 @@ task reproducibleLoaderJar(type: Jar) {
}
task reproducibleJarModeLayerToolsJar(type: Jar) {
dependsOn configurations.jarmode
from(zipTree(configurations.jarmode.incoming.files.filter {it.name.startsWith "spring-boot-jarmode-layertools" }.singleFile)) {
from {
zipTree(configurations.jarmode.incoming.files.singleFile).matching {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}
}
reproducibleFileOrder = true
preserveFileTimestamps = false
archiveFileName = "spring-boot-jarmode-layertools.jar"

@ -115,11 +115,12 @@ dependencies {
}
task extractTomcatConfigProperties(type: Sync) {
dependsOn configurations.tomcatDistribution
destinationDir = file(tomcatConfigProperties)
from(zipTree(configurations.tomcatDistribution.incoming.files.singleFile).matching {
from {
zipTree(configurations.tomcatDistribution.incoming.files.singleFile).matching {
include '**/conf/catalina.properties'
}.singleFile)
}.singleFile
}
}
sourceSets {

Loading…
Cancel
Save