Skip to content

Commit

Permalink
gradle: replace deprecated classifier property
Browse files Browse the repository at this point in the history
The `classifier` property of `Jar` has been deprecated few major
versions back, and no longer supported in the newest Gradle 8.0. Replace
`classifier` with `archiveClassifier` as suggested in docs:
https://docs.gradle.org/7.6/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:classifier

Fixes #6825.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
  • Loading branch information
ZhongRuoyu committed Feb 17, 2023
1 parent 70ac86a commit 4c98cf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ allprojects {
version = rootProject.version

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
jar.reproducibleFileOrder = true
jar.preserveFileTimestamps = false
Expand Down Expand Up @@ -976,4 +976,3 @@ task cloudsmithUpload {
}
}
}

0 comments on commit 4c98cf7

Please sign in to comment.