From 5c177a86fe3859e46a73894acbca346b43e83c3f Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Thu, 2 Aug 2018 21:42:45 +0300 Subject: [PATCH] Use snapshot repository if platform version ends with `SNAPSHOT` --- buildSrc/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index e3c83c6e12e..68b182cd7f5 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -59,7 +59,12 @@ val intellijUltimateEnabled by extra(project.getBooleanProperty("intellijUltimat val intellijSeparateSdks by extra(project.getBooleanProperty("intellijSeparateSdks") ?: false) extra["intellijRepo"] = "https://www.jetbrains.com/intellij-repository" -extra["intellijReleaseType"] = "releases" // or "snapshots" + +extra["intellijReleaseType"] = if (extra["versions.intellijSdk"]?.toString()?.endsWith("SNAPSHOT") == true) + "snapshots" +else + "releases" + extra["versions.androidDxSources"] = "5.0.0_r2" extra["customDepsOrg"] = "kotlin.build.custom.deps"