Pill: Allow '18x-SNAPSHOT' versions

This commit is contained in:
Yan Zhulanow
2018-06-27 17:15:45 +03:00
parent 778df36dfa
commit 20299f6224
+2 -1
View File
@@ -103,7 +103,8 @@ class JpsCompatiblePlugin : Plugin<Project> {
projectDir = project.projectDir
platformVersion = project.extensions.extraProperties.get("versions.intellijSdk").toString()
platformBaseNumber = platformVersion.substringBefore(".", "").takeIf { it.isNotEmpty() }
?: error("Invalid platform version: $platformVersion")
?: platformVersion.substringBefore("-", "").takeIf { it.isNotEmpty() }
?: error("Invalid platform version: $platformVersion")
platformDir = IntellijRootUtils.getIntellijRootDir(project)
isAndroidStudioPlatform = project.extensions.extraProperties.has("versions.androidStudioRelease")
}