Prepare a docs artifact

This commit is contained in:
Artem Bilan
2019-10-02 13:03:02 -04:00
parent cf5e5f4970
commit 18cd1863dc

View File

@@ -122,7 +122,7 @@ jacocoTestReport {
task api(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
outputDirectory = "$buildDir/api"
externalDocumentationLink {
url = new URL("https://docs.spring.io/spring-integration/docs/$springIntegrationVersion/api/")
}
@@ -160,7 +160,15 @@ sonarqube {
}
}
task distZip(type: Zip) {
task docsZip(type: Zip) {
group = 'Distribution'
archiveClassifier = 'docs'
from(api) {
into 'api'
}
}
task distZip(type: Zip, dependsOn: docsZip) {
group = 'Distribution'
archiveClassifier = 'dist'
description = "Builds -${archiveClassifier} archive, containing all jars and docs, " +
@@ -179,12 +187,15 @@ task distZip(type: Zip) {
from project.sourcesJar
from project.javadocJar
}
from(zipTree(docsZip.archivePath)) {
into "${baseDir}/docs"
}
}
artifacts {
archives sourcesJar
archives javadocJar
archives distZip
archives docsZip
}
task dist(dependsOn: assemble) {