Skip to content

Commit 50dbcf2

Browse files
committed
update integration tests
1 parent 751a9c1 commit 50dbcf2

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

buildSrc/src/main/kotlin/Config.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ val HOST_OS: OperatingSystem = findHostOs()
6262

6363
object Realm {
6464
val ciBuild = (System.getenv("CI") != null)
65-
const val version = "2.3.0"
65+
const val version = "2.3.0-SNAPSHOT"
6666
const val group = "io.realm.kotlin"
6767
const val projectUrl = "https://realm.io"
6868
const val pluginPortalId = "io.realm.kotlin"

integration-tests/gradle/gradle72-test/build.gradle.kts

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ buildscript {
2626
it.substringAfter("\"").substringBefore("\"")
2727
}
2828

29+
extra["kotlinVersion"] = file("${rootProject.rootDir.absolutePath}/../../../buildSrc/src/main/kotlin/Config.kt")
30+
.readLines()
31+
.first { it.contains("const val kotlin") }
32+
.let {
33+
it.substringAfter("\"").substringBefore("\"")
34+
}
35+
2936
repositories {
3037
maven(url = "file://${rootProject.rootDir.absolutePath}/../../../packages/build/m2-buildrepo")
3138
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
3441
}
3542
dependencies {
3643
classpath("com.android.tools.build:gradle:7.1.3")
37-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
44+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.extra["kotlinVersion"]}")
3845
classpath("io.realm.kotlin:gradle-plugin:${rootProject.extra["realmVersion"]}")
3946
}
4047
}

integration-tests/gradle/gradle75-test/build.gradle.kts

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ buildscript {
2626
it.substringAfter("\"").substringBefore("\"")
2727
}
2828

29+
extra["kotlinVersion"] = file("${rootProject.rootDir.absolutePath}/../../../buildSrc/src/main/kotlin/Config.kt")
30+
.readLines()
31+
.first { it.contains("const val kotlin") }
32+
.let {
33+
it.substringAfter("\"").substringBefore("\"")
34+
}
35+
2936
repositories {
3037
maven(url = "file://${rootProject.rootDir.absolutePath}/../../../packages/build/m2-buildrepo")
3138
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
3441
}
3542
dependencies {
3643
classpath("com.android.tools.build:gradle:7.4.0")
37-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
44+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.extra["kotlinVersion"]}")
3845
classpath("io.realm.kotlin:gradle-plugin:${rootProject.extra["realmVersion"]}")
3946
}
4047
}

integration-tests/gradle/gradle8-test/build.gradle.kts

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ buildscript {
2626
it.substringAfter("\"").substringBefore("\"")
2727
}
2828

29+
extra["kotlinVersion"] = file("${rootProject.rootDir.absolutePath}/../../../buildSrc/src/main/kotlin/Config.kt")
30+
.readLines()
31+
.first { it.contains("const val kotlin") }
32+
.let {
33+
it.substringAfter("\"").substringBefore("\"")
34+
}
35+
2936
repositories {
3037
maven(url = "file://${rootProject.rootDir.absolutePath}/../../../packages/build/m2-buildrepo")
3138
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
3441
}
3542
dependencies {
3643
classpath("com.android.tools.build:gradle:8.1.0")
37-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
44+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.extra["kotlinVersion"]}")
3845
classpath("io.realm.kotlin:gradle-plugin:${rootProject.extra["realmVersion"]}")
3946
}
4047
}

integration-tests/gradle/gradle85-test/build.gradle.kts

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ buildscript {
2626
it.substringAfter("\"").substringBefore("\"")
2727
}
2828

29+
extra["kotlinVersion"] = file("${rootProject.rootDir.absolutePath}/../../../buildSrc/src/main/kotlin/Config.kt")
30+
.readLines()
31+
.first { it.contains("const val kotlin") }
32+
.let {
33+
it.substringAfter("\"").substringBefore("\"")
34+
}
35+
2936
repositories {
3037
maven(url = "file://${rootProject.rootDir.absolutePath}/../../../packages/build/m2-buildrepo")
3138
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
3441
}
3542
dependencies {
3643
classpath("com.android.tools.build:gradle:8.1.0")
37-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
44+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${rootProject.extra["kotlinVersion"]}")
3845
classpath("io.realm.kotlin:gradle-plugin:${rootProject.extra["realmVersion"]}")
3946
}
4047
}

0 commit comments

Comments
 (0)