Skip to content

Commit be6a49f

Browse files
committed
Improve lazy configuration: withType -> withType.configureEach
1 parent 38cad1e commit be6a49f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tasks.test {
3333
useJUnitPlatform()
3434
}
3535

36-
tasks.withType<Jar> {
36+
tasks.withType<Jar>().configureEach {
3737
manifest.attributes(
3838
"Implementation-Title" to project.name,
3939
"Implementation-Vendor" to "HiveMQ GmbH",
@@ -43,4 +43,4 @@ tasks.withType<Jar> {
4343
license {
4444
header = rootDir.resolve("HEADER")
4545
mapping("java", "SLASHSTAR_STYLE")
46-
}
46+
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pluginManagement {
55
id("com.github.hierynomus.license") version "${extra["plugin.license.version"]}"
66
id("com.github.sgtsilvio.gradle.utf8") version "${extra["plugin.utf8.version"]}"
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)