[performance] prerequisite checks added

This commit is contained in:
Vasily Levchenko
2021-03-05 16:12:48 +01:00
committed by Space
parent 72bb1f5b30
commit 3935c290a9
+7
View File
@@ -100,6 +100,13 @@ task konanRun {
}
task jvmRun {
if(findProperty("kotlin_dist") == null) {
throw new StopExecutionException("please specify location of kotlin's dist in 'kotlin_dist' property")
}
def file = new File("${UtilsKt.getKotlinNativeDist(project)}/libs/kotlinx.cli-jvm-${globalProperties["defaultSnapshotVersion"]}.jar")
if (!file.exists()) {
throw new StopExecutionException("please execute :kotlin-native:distKotlinxCliJvm in root project")
}
dependsOn buildAnalyzer
subprojects.each {
dependsOn "${it.path}:jvmRun"