Skip to content

Commit

Permalink
added javadoc generation to build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Thulin committed Nov 24, 2015
1 parent 090e027 commit a25e017
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,17 @@ uploadArchives {
}
}
}

android.libraryVariants.all { variant ->

task("generate${variant.name}Javadoc", type: Javadoc) {
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
classpath = files(variant.javaCompile.classpath.files, android.getBootClasspath())

options {
links "http://docs.oracle.com/javase/7/docs/api/"
}
exclude '**/R.java'
}
}

0 comments on commit a25e017

Please sign in to comment.