@@ -486,7 +486,7 @@ task reference(dependsOn: asciidoctor) {
486
486
487
487
reference. onlyIf { " $System . env . NO_REFERENCE_TASK " != ' true' || project. hasProperty(' ignoreEnvToStopReference' ) }
488
488
489
- task api ( type : Javadoc ) {
489
+ tasks . register( ' api ' , Javadoc ) {
490
490
group = ' Documentation'
491
491
description = ' Generates aggregated Javadoc API documentation.'
492
492
title = " ${ rootProject.description} ${ version} API"
@@ -509,10 +509,10 @@ task api(type: Javadoc) {
509
509
classpath = files(javaProjects. collect { project ->
510
510
project. sourceSets. main. compileClasspath
511
511
})
512
- destinationDir = new File (buildDir, ' api' )
512
+ destinationDir = file( ' build/ api' )
513
513
}
514
514
515
- task docsZip ( type : Zip , dependsOn : [reference] ) {
515
+ tasks . register( ' docsZip ' , Zip ) {
516
516
group = ' Distribution'
517
517
archiveClassifier = ' docs'
518
518
description = " Builds -${ archiveClassifier} archive containing api and reference " +
@@ -537,7 +537,8 @@ task docsZip(type: Zip, dependsOn: [reference]) {
537
537
}
538
538
}
539
539
540
- task distZip (type : Zip , dependsOn : [docsZip]) { // , schemaZip]) {
540
+ tasks. register(' distZip' , Zip ) {
541
+ dependsOn ' docsZip'
541
542
group = ' Distribution'
542
543
archiveClassifier = ' dist'
543
544
description = " Builds -${ archiveClassifier} archive, containing all jars and docs, " +
@@ -575,12 +576,8 @@ task distZip(type: Zip, dependsOn: [docsZip]) { //, schemaZip]) {
575
576
576
577
}
577
578
578
- artifacts {
579
- archives distZip
580
- archives docsZip
581
- }
582
-
583
- task dist (dependsOn : assemble) {
579
+ tasks. register(' dist' ) {
580
+ dependsOn assemble
584
581
group = ' Distribution'
585
582
description = ' Builds -dist, -docs distribution archives.'
586
583
}
0 commit comments