Skip to content

Commit a195ba8

Browse files
committed
build > improvements
1 parent 28920ef commit a195ba8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

build.gradle.kts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,25 @@ java {
8484

8585
tasks.withType<Jar>().configureEach {
8686
manifest.attributes(
87-
"Implementation-Title" to project.name,
88-
"Implementation-Vendor" to metadata.organization!!.name.get(),
89-
"Implementation-Version" to project.version)
87+
"Implementation-Title" to project.name,
88+
"Implementation-Vendor" to metadata.organization!!.name.get(),
89+
"Implementation-Version" to project.version
90+
)
9091
}
9192

9293
tasks.javadoc {
9394
title = "${metadata.readableName.get()} ${project.version} API"
9495

9596
doLast { // javadoc search fix for jdk 11 https://bugs.openjdk.java.net/browse/JDK-8215291
9697
copy {
97-
from("$buildDir/docs/javadoc/search.js")
98-
into("$buildDir/tmp/javadoc/")
98+
from("$destinationDir/search.js")
99+
into(temporaryDir)
99100
filter { line -> line.replace("if (ui.item.p == item.l) {", "if (item.m && ui.item.p == item.l) {") }
100101
}
101-
delete("$buildDir/docs/javadoc/search.js")
102+
delete("$destinationDir/search.js")
102103
copy {
103-
from("$buildDir/tmp/javadoc/search.js")
104-
into("$buildDir/docs/javadoc/")
104+
from("$temporaryDir/search.js")
105+
into(destinationDir!!)
105106
}
106107
}
107108
}

0 commit comments

Comments
 (0)