File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,23 +91,11 @@ tasks.withType<Jar>().configureEach {
9191tasks.javadoc {
9292 title = " ${metadata.readableName.get()} ${project.version} API"
9393
94+ val javadocCleanerResult = providers.javaexec {
95+ classpath(" gradle/tools/javadoc-cleaner-1.0.jar" )
96+ }.result
9497 doLast {
95- javaexec {
96- classpath(" gradle/tools/javadoc-cleaner-1.0.jar" )
97- }
98- }
99-
100- doLast { // javadoc search fix for jdk 11 https://bugs.openjdk.java.net/browse/JDK-8215291
101- copy {
102- from(destinationDir!! .resolve(" search.js" ))
103- into(temporaryDir)
104- filter { line -> line.replace(" if (ui.item.p == item.l) {" , " if (item.m && ui.item.p == item.l) {" ) }
105- }
106- delete(destinationDir!! .resolve(" search.js" ))
107- copy {
108- from(temporaryDir.resolve(" search.js" ))
109- into(destinationDir!! )
110- }
98+ javadocCleanerResult.get()
11199 }
112100}
113101
You can’t perform that action at this time.
0 commit comments