Support Gradle 5.x in GradleMigrateTest
This commit is contained in:
+10
-10
@@ -34,14 +34,14 @@ class GradleMigrateTest : GradleImportingTestCase() {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.0"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.40"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:1.1.0"
|
compile "org.jetbrains.kotlin:kotlin-stdlib:1.2.40"
|
||||||
}
|
}
|
||||||
""",
|
""",
|
||||||
|
|
||||||
@@ -53,14 +53,14 @@ class GradleMigrateTest : GradleImportingTestCase() {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.0"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:1.2.0"
|
compile "org.jetbrains.kotlin:kotlin-stdlib:1.3.50"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
@@ -69,12 +69,12 @@ class GradleMigrateTest : GradleImportingTestCase() {
|
|||||||
|
|
||||||
Assert.assertEquals(
|
Assert.assertEquals(
|
||||||
MigrationInfo.create(
|
MigrationInfo.create(
|
||||||
oldStdlibVersion = "1.1.0",
|
oldStdlibVersion = "1.2.40",
|
||||||
oldApiVersion = ApiVersion.KOTLIN_1_1,
|
oldApiVersion = ApiVersion.KOTLIN_1_2,
|
||||||
oldLanguageVersion = LanguageVersion.KOTLIN_1_1,
|
oldLanguageVersion = LanguageVersion.KOTLIN_1_2,
|
||||||
newStdlibVersion = "1.2.0",
|
newStdlibVersion = "1.3.50",
|
||||||
newApiVersion = ApiVersion.KOTLIN_1_2,
|
newApiVersion = ApiVersion.KOTLIN_1_3,
|
||||||
newLanguageVersion = LanguageVersion.KOTLIN_1_2
|
newLanguageVersion = LanguageVersion.KOTLIN_1_3
|
||||||
),
|
),
|
||||||
migrateComponentState?.migrationInfo
|
migrateComponentState?.migrationInfo
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user