Skip to content

Instantly share code, notes, and snippets.

@melix
melix / build.gradle
Created June 19, 2013 12:41
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