File tree 5 files changed +33
-5
lines changed
5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ val HOST_OS: OperatingSystem = findHostOs()
62
62
63
63
object Realm {
64
64
val ciBuild = (System .getenv(" CI" ) != null )
65
- const val version = " 2.3.0"
65
+ const val version = " 2.3.0-SNAPSHOT "
66
66
const val group = " io.realm.kotlin"
67
67
const val projectUrl = " https://realm.io"
68
68
const val pluginPortalId = " io.realm.kotlin"
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ buildscript {
26
26
it.substringAfter(" \" " ).substringBefore(" \" " )
27
27
}
28
28
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
+
29
36
repositories {
30
37
maven(url = " file://${rootProject.rootDir.absolutePath} /../../../packages/build/m2-buildrepo" )
31
38
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
34
41
}
35
42
dependencies {
36
43
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 " ]} " )
38
45
classpath(" io.realm.kotlin:gradle-plugin:${rootProject.extra[" realmVersion" ]} " )
39
46
}
40
47
}
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ buildscript {
26
26
it.substringAfter(" \" " ).substringBefore(" \" " )
27
27
}
28
28
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
+
29
36
repositories {
30
37
maven(url = " file://${rootProject.rootDir.absolutePath} /../../../packages/build/m2-buildrepo" )
31
38
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
34
41
}
35
42
dependencies {
36
43
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 " ]} " )
38
45
classpath(" io.realm.kotlin:gradle-plugin:${rootProject.extra[" realmVersion" ]} " )
39
46
}
40
47
}
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ buildscript {
26
26
it.substringAfter(" \" " ).substringBefore(" \" " )
27
27
}
28
28
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
+
29
36
repositories {
30
37
maven(url = " file://${rootProject.rootDir.absolutePath} /../../../packages/build/m2-buildrepo" )
31
38
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
34
41
}
35
42
dependencies {
36
43
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 " ]} " )
38
45
classpath(" io.realm.kotlin:gradle-plugin:${rootProject.extra[" realmVersion" ]} " )
39
46
}
40
47
}
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ buildscript {
26
26
it.substringAfter(" \" " ).substringBefore(" \" " )
27
27
}
28
28
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
+
29
36
repositories {
30
37
maven(url = " file://${rootProject.rootDir.absolutePath} /../../../packages/build/m2-buildrepo" )
31
38
gradlePluginPortal()
@@ -34,7 +41,7 @@ buildscript {
34
41
}
35
42
dependencies {
36
43
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 " ]} " )
38
45
classpath(" io.realm.kotlin:gradle-plugin:${rootProject.extra[" realmVersion" ]} " )
39
46
}
40
47
}
You can’t perform that action at this time.
0 commit comments