Skip to content

Commit 996252f

Browse files
committed
Stop using deprecated classifier property
Closes gh-36125
1 parent 9e1f2c4 commit 996252f

File tree

2 files changed

+5
-5
lines changed
  • spring-boot-project/spring-boot-cli
  • spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/spring-boot-server-tests-app

2 files changed

+5
-5
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ test {
107107

108108
task fullJar(type: Jar) {
109109
dependsOn configurations.loader
110-
classifier = "full"
110+
archiveClassifier = "full"
111111
entryCompression = "stored"
112112
from(configurations.runtimeClasspath) {
113113
into "BOOT-INF/lib"
@@ -132,7 +132,7 @@ task fullJar(type: Jar) {
132132
}
133133

134134
def configureArchive(archive) {
135-
archive.classifier = "bin"
135+
archive.archiveClassifier = "bin"
136136
archive.into "spring-${project.version}"
137137
archive.from(fullJar) {
138138
rename {
@@ -150,7 +150,7 @@ def configureArchive(archive) {
150150
}
151151

152152
task zip(type: Zip) {
153-
classifier = "bin"
153+
archiveClassifier = "bin"
154154
configureArchive it
155155
}
156156

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tasks.register("resourcesJar", Jar) { jar ->
4545
rename (".*", 'nested-reserved-!#\\$%&()*+,:=?@[]-meta-inf-resource.txt')
4646
}
4747
}
48-
classifier = 'resources'
48+
archiveClassifier = 'resources'
4949
}
5050

5151
dependencies {
@@ -71,7 +71,7 @@ def boolean isWindows() {
7171
task.dependsOn resourcesJar
7272
task.mainClass = "com.example.ResourceHandlingApplication"
7373
task.classpath = sourceSets.main.runtimeClasspath.plus(configurations.getByName(container))
74-
task.classifier = container
74+
task.archiveClassifier = container
7575
}
7676
tasks.register("${container}BootJar", BootJar, configurer)
7777
tasks.register("${container}BootWar", BootWar, configurer)

0 commit comments

Comments
 (0)