[K/N][samples] Use compilations for libcurl dependency setting

This commit is contained in:
Pavel Punegov
2022-04-06 16:09:27 +03:00
committed by Space
parent 1488790cd3
commit 4b3a5ad875
+8 -6
View File
@@ -44,13 +44,15 @@ kotlin {
}
}
}
}
// The code snippet 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.
tasks.withType(AbstractCompile::class) {
dependsOn(":libcurl:publish")
// The code snippet 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 {
compilations.all {
compileKotlinTask.dependsOn(":libcurl:publish")
}
}
}
// The following snippet is needed to give instructions for IDEA user who just imported project