HHH-13685 Replace uses of deprecated classifier property in Jar tasks with archiveClassifier

This commit is contained in:
Yoann Rodière 2019-10-23 09:58:09 +02:00 committed by Steve Ebersole
parent 1d98edc402
commit cee0fce043
2 changed files with 3 additions and 3 deletions

View File

@ -67,13 +67,13 @@ jar {
task sourcesJar(type: Jar) {
from project.sourceSets.main.allSource
manifest = project.tasks.jar.manifest
classifier = 'sources'
archiveClassifier.set( 'sources' )
}
task javadocJar(type: Jar) {
from project.tasks.javadoc.outputs
manifest = project.tasks.jar.manifest
classifier = 'javadoc'
archiveClassifier.set( 'javadoc' )
}

View File

@ -217,7 +217,7 @@ task copyBundleResources (type: Copy) {
processTestResources.dependsOn copyBundleResources
task testJar(type: Jar, dependsOn: testClasses) {
classifier = 'test'
archiveClassifier.set( 'test' )
from sourceSets.test.output
}