Skip to content

Commit 66d0f6d

Browse files
committed
CODEREVIEW Use configureEach instead of whenTaskAdded
1 parent 2380486 commit 66d0f6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ tasks.withType<AbstractDokkaLeafTask>().configureEach {
412412
}
413413
}
414414

415-
tasks.whenTaskAdded {
415+
// Disable intermediate sourceSet compilation because we do not need js-wasmJs artifact
416+
tasks.configureEach {
416417
if (name == "compileJsAndWasmSharedMainKotlinMetadata") {
417-
this.enabled = false
418+
enabled = false
418419
}
419420
}
420421

0 commit comments

Comments
 (0)