diff --git a/kotlin-native/backend.native/tests/samples/curl/build.gradle.kts b/kotlin-native/backend.native/tests/samples/curl/build.gradle.kts index 9cdcfac40fe..f3ea5d66da9 100644 --- a/kotlin-native/backend.native/tests/samples/curl/build.gradle.kts +++ b/kotlin-native/backend.native/tests/samples/curl/build.gradle.kts @@ -46,7 +46,7 @@ kotlin { } } - // The code snippet below is needed to make all compile tasks depend on publication of + // The code below is needed to make all compile tasks depend on publication of // "libcurl" library. So that to the time of compilation the library will already be // in Maven repo and will be successfully resolved as a dependency of this project. targets.all { @@ -54,6 +54,10 @@ kotlin { compileKotlinTask.dependsOn(":libcurl:publish") } } + + tasks.withType { + dependsOn(":libcurl:publish") + } } // The following snippet is needed to give instructions for IDEA user who just imported project