diff --git a/gradle/render-javadoc.gradle b/gradle/render-javadoc.gradle index bd2278919ac..c4264240f2a 100644 --- a/gradle/render-javadoc.gradle +++ b/gradle/render-javadoc.gradle @@ -51,10 +51,9 @@ allprojects { def javadocCmd = org.gradle.internal.jvm.Jvm.current().getJavadocExecutable() - def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt") - doFirst { def srcDirs = sourceSets.main.java.srcDirs.findAll { dir -> dir.exists() } + def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt") def opts = [] opts += [ "-overview ${file("src/java/overview.html").toString()}" ]