Merge branch '2.7.x' into 3.0.x

Closes gh-36126
pull/37018/head
Andy Wilkinson 1 year ago
commit 93f8bd2170

@ -51,7 +51,7 @@ dependencies {
task fullJar(type: Jar) { task fullJar(type: Jar) {
dependsOn configurations.loader dependsOn configurations.loader
classifier = "full" archiveClassifier = "full"
entryCompression = "stored" entryCompression = "stored"
from(configurations.runtimeClasspath) { from(configurations.runtimeClasspath) {
into "BOOT-INF/lib" into "BOOT-INF/lib"
@ -75,7 +75,7 @@ task fullJar(type: Jar) {
} }
def configureArchive(archive) { def configureArchive(archive) {
archive.classifier = "bin" archive.archiveClassifier = "bin"
archive.into "spring-${project.version}" archive.into "spring-${project.version}"
archive.from(fullJar) { archive.from(fullJar) {
rename { rename {
@ -93,7 +93,7 @@ def configureArchive(archive) {
} }
task zip(type: Zip) { task zip(type: Zip) {
classifier = "bin" archiveClassifier = "bin"
configureArchive it configureArchive it
} }

@ -62,7 +62,7 @@ tasks.register("resourcesJar", Jar) { jar ->
rename (".*", 'nested-reserved-!#\\$%&()*+,:=?@[]-meta-inf-resource.txt') rename (".*", 'nested-reserved-!#\\$%&()*+,:=?@[]-meta-inf-resource.txt')
} }
} }
classifier = 'resources' archiveClassifier = 'resources'
} }
dependencies { dependencies {
@ -88,7 +88,7 @@ def boolean isWindows() {
task.dependsOn resourcesJar task.dependsOn resourcesJar
task.mainClass = "com.example.ResourceHandlingApplication" task.mainClass = "com.example.ResourceHandlingApplication"
task.classpath = configurations.getByName(webServer) task.classpath = configurations.getByName(webServer)
task.classifier = webServer task.archiveClassifier = webServer
task.targetJavaVersion = project.getTargetCompatibility() task.targetJavaVersion = project.getTargetCompatibility()
} }
tasks.register("${webServer}BootJar", BootJar, configurer) tasks.register("${webServer}BootJar", BootJar, configurer)

Loading…
Cancel
Save