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 gbadner
parent ff76c01dde
commit 861b3c00aa
2 changed files with 3 additions and 3 deletions

View File

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

View File

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