Skip to content

Commit

Permalink
Publish javadocs as distribution zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
chilimannen committed Mar 12, 2017
1 parent bb88659 commit 662d19d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ task prototype(type: JavaExec, dependsOn: subprojects.classes) {
}
}

task alljavadoc(type: Javadoc) {
source subprojects.collect { it.sourceSets.main.allJava }
classpath = files(subprojects.collect { it.sourceSets.main.compileClasspath })
destinationDir = file("${buildDir}/docs/javadoc")
}

task archiveJavadoc(type: Zip, dependsOn: alljavadoc) {
baseName = 'javadocs'
from fileTree(file("${buildDir}/docs/javadoc"))
}

if (System.env.TRAVIS == 'true') {
allprojects {
tasks.withType(GroovyCompile) {
Expand Down

0 comments on commit 662d19d

Please sign in to comment.