diff --git a/libraries/tools/abi-validation/src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt b/libraries/tools/abi-validation/src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt index 7bf2ddd8ab3ec..3addaf5d8463c 100644 --- a/libraries/tools/abi-validation/src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt +++ b/libraries/tools/abi-validation/src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt @@ -155,7 +155,9 @@ private fun Project.configureCheckTasks( apiCheckDir.mkdirs() } } - project.tasks.getByName("check").dependsOn(apiCheck) + project.tasks.named("check").configure { + it.dependsOn(apiCheck) + } } inline fun Project.task(