HHH-13685 Replace uses of deprecated classifier property in Jar tasks with archiveClassifier
This commit is contained in:
parent
1d98edc402
commit
cee0fce043
|
@ -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' )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue