Replace use of classifier with archiveClassifier

classifier has been deprecated so the docs should be using its
replacement, archiveClassifier, instead.

See gh-29611
This commit is contained in:
Mike Partridge 2022-02-01 02:59:52 -06:00 committed by Andy Wilkinson
parent 43ca2d2cb0
commit 2e9dcdd96d
2 changed files with 4 additions and 4 deletions

View File

@ -5,11 +5,11 @@ plugins {
// tag::classifiers[]
bootJar {
classifier = 'boot'
archiveClassifier = 'boot'
}
jar {
classifier = ''
archiveClassifier = ''
}
// end::classifiers[]

View File

@ -7,11 +7,11 @@ plugins {
// tag::classifiers[]
tasks.getByName<BootJar>("bootJar") {
classifier = "boot"
archiveClassifier.set("boot")
}
tasks.getByName<Jar>("jar") {
classifier = ""
archiveClassifier.set("")
}
// end::classifiers[]