Created
June 19, 2013 12:41
-
-
Save melix/5813990 to your computer and use it in GitHub Desktop.
Apply javadoc fix tool to your Gradle build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copy JavadocFixTool.java into buildSrc/src/main/java | |
// this will apply the javadoc fix tool to all generated javadocs | |
// we use it to make sure that the javadocs are not vulnerable independently of the JDK used to build | |
allprojects { | |
tasks.withType(Javadoc).all { | |
doLast { | |
def javadocFix = new JavadocFixTool() | |
javadocFix.recursive = true | |
javadocFix.doPatch = true | |
javadocFix.searchAndPatch(destinationDir) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JavaDocTool.java can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/java-doc-updater-tool-1955731.html