Use correct version detection for developer versions
#KT-11213 Fixed
This commit is contained in:
@@ -163,7 +163,7 @@ private enum class LibraryJarDescriptor private constructor(val jarName: String,
|
|||||||
JS_STDLIB_SRC_JAR(PathUtil.JS_LIB_SRC_JAR_NAME, false)
|
JS_STDLIB_SRC_JAR(PathUtil.JS_LIB_SRC_JAR_NAME, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val PLUGIN_VERSIONS_SEPARATORS = arrayOf("Idea", "IJ", "release")
|
private val PLUGIN_VERSIONS_SEPARATORS = arrayOf("Idea", "IJ", "release", "dev")
|
||||||
@JvmOverloads fun bundledRuntimeVersion(pluginVersion: String = KotlinPluginUtil.getPluginVersion()): String {
|
@JvmOverloads fun bundledRuntimeVersion(pluginVersion: String = KotlinPluginUtil.getPluginVersion()): String {
|
||||||
var placeToSplit = -1
|
var placeToSplit = -1
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ class KotlinRuntimeLibraryUtilTest : TestCase() {
|
|||||||
test("1.0.0-alpha", "1.0.0-alpha")
|
test("1.0.0-alpha", "1.0.0-alpha")
|
||||||
test("1.2.2123-alpha-023", "1.2.2123-alpha-023")
|
test("1.2.2123-alpha-023", "1.2.2123-alpha-023")
|
||||||
test("1.0.0-release-IJ143-75", "1.0.0")
|
test("1.0.0-release-IJ143-75", "1.0.0")
|
||||||
|
test("1.0.2-eap-10-IJ141-10", "1.0.2-eap-10")
|
||||||
|
test("1.0.2-dev-825", "1.0.2")
|
||||||
test("1.0.1-rc-5-IJ143-7", "1.0.1-rc-5")
|
test("1.0.1-rc-5-IJ143-7", "1.0.1-rc-5")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user