Skip to content

Commit

Permalink
[Fix] Fix Javadoc task classpath with hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Oct 3, 2018
1 parent c9d9884 commit fb3d5fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ dependencies {
}

apply from: '../gradle-mvn-push.gradle'

// HACK: We are referencing our dependencies in JavaDoc. This hack fixes the classpath for the
// androidJavadocs task.
afterEvaluate {
androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile
.classpath
}

0 comments on commit fb3d5fb

Please sign in to comment.