Skip to content

Commit a25e017

Browse files
author
Magnus Thulin
committed
added javadoc generation to build file
1 parent 090e027 commit a25e017

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

WordPressUtils/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,17 @@ uploadArchives {
8787
}
8888
}
8989
}
90+
91+
android.libraryVariants.all { variant ->
92+
93+
task("generate${variant.name}Javadoc", type: Javadoc) {
94+
description "Generates Javadoc for $variant.name."
95+
source = variant.javaCompile.source
96+
classpath = files(variant.javaCompile.classpath.files, android.getBootClasspath())
97+
98+
options {
99+
links "http://docs.oracle.com/javase/7/docs/api/"
100+
}
101+
exclude '**/R.java'
102+
}
103+
}

0 commit comments

Comments
 (0)