From 38ad9c16c6aa2d47c0819c55b5b09ee710755bb8 Mon Sep 17 00:00:00 2001 From: Alexander Likhachev Date: Thu, 29 Jul 2021 17:26:15 +0300 Subject: [PATCH] [ABI Validation] Use lazy API to configure `check` task Fixes https://github.com/Kotlin/binary-compatibility-validator/issues/64 Pull request https://github.com/Kotlin/binary-compatibility-validator/pull/65 --- .../src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(