Skip to content

Instantly share code, notes, and snippets.

@melix
Created June 19, 2013 12:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melix/5813990 to your computer and use it in GitHub Desktop.
Save melix/5813990 to your computer and use it in GitHub Desktop.
Apply javadoc fix tool to your Gradle build
// 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)
}
}
}
@melix
Copy link
Author

melix commented Jun 19, 2013

@melix
Copy link
Author

melix commented Jun 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment