@@ -11,7 +11,7 @@ val BRANCH_NAME = "kotlin-nightlies"
11
11
12
12
fun bumpVersions () {
13
13
val kotlinVersion =
14
- getLatestVersion(" https://redirector.kotlinlang.org/maven/dev/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml" , prefix = " 2.2.0 " )
14
+ getLatestVersion(" https://redirector.kotlinlang.org/maven/dev/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml" , prefix = " 2.2.20-RC " )
15
15
16
16
val useKspSnapshots = false
17
17
val kspVersion = getLatestVersion(
@@ -20,7 +20,7 @@ fun bumpVersions() {
20
20
} else {
21
21
" https://repo1.maven.org/maven2/com/google/devtools/ksp/com.google.devtools.ksp.gradle.plugin/maven-metadata.xml"
22
22
},
23
- prefix = " 2.2.0 "
23
+ prefix = " 2.2.20 "
24
24
)
25
25
26
26
File (" gradle/libraries.toml" ).let { file ->
@@ -55,7 +55,14 @@ fun getLatestVersion(url: String, prefix: String? = null): String {
55
55
.sortedBy {
56
56
Version .parse(
57
57
// Make it SemVer comparable
58
- it.replace(" -dev-" , " -dev." )
58
+ it
59
+ .replace(" -dev-" , " -dev." )
60
+ .replace(" -RC-" , " -RC." )
61
+ .replace(" -RC2-" , " -RC2." )
62
+ .replace(" -RC3-" , " -RC3." )
63
+ .replace(" -Beta-" , " -Beta." )
64
+ .replace(" -Beta2-" , " -Beta2." )
65
+ .replace(" -Beta3-" , " -Beta3." )
59
66
)
60
67
}
61
68
.last()
0 commit comments