Browse Source

Stop using deprecated classifier property

Closes gh-36125
pull/36620/head
Andy Wilkinson 3 years ago
parent
commit
996252f929
  1. 6
      spring-boot-project/spring-boot-cli/build.gradle
  2. 4
      spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/spring-boot-server-tests-app/build.gradle

6
spring-boot-project/spring-boot-cli/build.gradle

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

4
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/spring-boot-server-tests-app/build.gradle

@ -45,7 +45,7 @@ tasks.register("resourcesJar", Jar) { jar -> @@ -45,7 +45,7 @@ tasks.register("resourcesJar", Jar) { jar ->
rename (".*", 'nested-reserved-!#\\$%&()*+,:=?@[]-meta-inf-resource.txt')
}
}
classifier = 'resources'
archiveClassifier = 'resources'
}
dependencies {
@ -71,7 +71,7 @@ def boolean isWindows() { @@ -71,7 +71,7 @@ def boolean isWindows() {
task.dependsOn resourcesJar
task.mainClass = "com.example.ResourceHandlingApplication"
task.classpath = sourceSets.main.runtimeClasspath.plus(configurations.getByName(container))
task.classifier = container
task.archiveClassifier = container
}
tasks.register("${container}BootJar", BootJar, configurer)
tasks.register("${container}BootWar", BootWar, configurer)

Loading…
Cancel
Save