Skip to content

Commit

Permalink
build.gradle: classifier -> archiveClassifier
Browse files Browse the repository at this point in the history
This is needed to upgrade to Gradle 8.

See https://discuss.gradle.org/t/publishing-jars-with-classifiers-after-v5-0/30144/3

Signed-off-by: Tomodachi94 <[email protected]>
  • Loading branch information
tomodachi94 committed Oct 31, 2024
1 parent 513f4c2 commit fa0036f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jar {
}

task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allJava
}

Expand All @@ -91,7 +91,7 @@ publishing {
from components.java

artifact sourceJar {
classifier 'sources'
archiveClassifier = 'sources'
}
}
}
Expand Down

0 comments on commit fa0036f

Please sign in to comment.