'Configure kotlin' should set 1.2-SNAPSHOT version in build.gradle for snapshot version of kotlin plugin
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ abstract class GradleKotlinFrameworkSupportProvider(
|
|||||||
var kotlinVersion = bundledRuntimeVersion()
|
var kotlinVersion = bundledRuntimeVersion()
|
||||||
val additionalRepository = getRepositoryForVersion(kotlinVersion)
|
val additionalRepository = getRepositoryForVersion(kotlinVersion)
|
||||||
if (isSnapshot(bundledRuntimeVersion())) {
|
if (isSnapshot(bundledRuntimeVersion())) {
|
||||||
kotlinVersion = "1.1-SNAPSHOT"
|
kotlinVersion = LAST_SNAPSHOT_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalRepository != null) {
|
if (additionalRepository != null) {
|
||||||
|
|||||||
+1
-1
@@ -52,7 +52,7 @@ abstract class KotlinDslGradleKotlinFrameworkSupportProvider(
|
|||||||
var kotlinVersion = bundledRuntimeVersion()
|
var kotlinVersion = bundledRuntimeVersion()
|
||||||
val additionalRepository = getRepositoryForVersion(kotlinVersion)
|
val additionalRepository = getRepositoryForVersion(kotlinVersion)
|
||||||
if (isSnapshot(bundledRuntimeVersion())) {
|
if (isSnapshot(bundledRuntimeVersion())) {
|
||||||
kotlinVersion = "1.1-SNAPSHOT"
|
kotlinVersion = LAST_SNAPSHOT_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalRepository != null) {
|
if (additionalRepository != null) {
|
||||||
|
|||||||
+2
@@ -43,6 +43,8 @@ import org.jetbrains.kotlin.utils.ifEmpty
|
|||||||
|
|
||||||
data class RepositoryDescription(val id: String, val name: String, val url: String, val bintrayUrl: String?, val isSnapshot: Boolean)
|
data class RepositoryDescription(val id: String, val name: String, val url: String, val bintrayUrl: String?, val isSnapshot: Boolean)
|
||||||
|
|
||||||
|
const val LAST_SNAPSHOT_VERSION = "1.2-SNAPSHOT"
|
||||||
|
|
||||||
val SNAPSHOT_REPOSITORY = RepositoryDescription(
|
val SNAPSHOT_REPOSITORY = RepositoryDescription(
|
||||||
"sonatype.oss.snapshots",
|
"sonatype.oss.snapshots",
|
||||||
"Sonatype OSS Snapshot Repository",
|
"Sonatype OSS Snapshot Repository",
|
||||||
|
|||||||
Reference in New Issue
Block a user