Skip to content

Commit 061458c

Browse files
committed
build > cleanup
1 parent a195ba8 commit 061458c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ java {
8282
withSourcesJar()
8383
}
8484

85-
tasks.withType<Jar>().configureEach {
85+
tasks.withType<Jar> {
8686
manifest.attributes(
8787
"Implementation-Title" to project.name,
8888
"Implementation-Vendor" to metadata.organization!!.name.get(),
@@ -95,13 +95,13 @@ tasks.javadoc {
9595

9696
doLast { // javadoc search fix for jdk 11 https://bugs.openjdk.java.net/browse/JDK-8215291
9797
copy {
98-
from("$destinationDir/search.js")
98+
from(destinationDir!!.resolve("search.js"))
9999
into(temporaryDir)
100100
filter { line -> line.replace("if (ui.item.p == item.l) {", "if (item.m && ui.item.p == item.l) {") }
101101
}
102-
delete("$destinationDir/search.js")
102+
delete(destinationDir!!.resolve("search.js"))
103103
copy {
104-
from("$temporaryDir/search.js")
104+
from(temporaryDir.resolve("search.js"))
105105
into(destinationDir!!)
106106
}
107107
}
@@ -135,6 +135,6 @@ nexusPublishing {
135135
/* ******************** checks ******************** */
136136

137137
license {
138-
header = file("$projectDir/HEADER")
138+
header = projectDir.resolve("HEADER")
139139
mapping("java", "SLASHSTAR_STYLE")
140140
}

0 commit comments

Comments
 (0)