Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #112 from BoltsFramework/grantland.aggregate
Browse files Browse the repository at this point in the history
Add Gradle task for generating aggregate javadocs
  • Loading branch information
grantland committed Jan 15, 2016
2 parents 4299f19 + 3577ff3 commit 8e288b9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ ext {
minSdkVersion = 8
targetSdkVersion = 23
}

task aggregateJavadocs(type: Javadoc) {
destinationDir = file("$buildDir/docs/javadoc")
}

subprojects {
afterEvaluate {
if (plugins.hasPlugin(JavaPlugin)) {
rootProject.tasks.aggregateJavadocs {
source += javadoc.source
classpath += files(javadoc.classpath)
}
}
if (plugins.hasPlugin(com.android.build.gradle.LibraryPlugin)) {
rootProject.tasks.aggregateJavadocs {
source += files(android.sourceSets.main.java.srcDirs)
classpath += files(project.files(android.getBootClasspath().join(File.pathSeparator)))
}
}
}
}

0 comments on commit 8e288b9

Please sign in to comment.