@@ -11,23 +11,21 @@ val BRANCH_NAME = "kotlin-nightlies"
1111
1212fun bumpVersions () {
1313 val kotlinVersion =
14- getLatestVersion(" https://redirector.kotlinlang.org/maven/dev/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml" , prefix = " 2.2.20-RC " )
14+ getLatestVersion(" https://redirector.kotlinlang.org/maven/dev/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml" , prefix = " 2.3.0-dev " )
1515
1616 val useKspSnapshots = false
1717 val kspVersion = getLatestVersion(
1818 if (useKspSnapshots) {
1919 " https://oss.sonatype.org/content/repositories/snapshots/com/google/devtools/ksp/com.google.devtools.ksp.gradle.plugin/maven-metadata.xml"
2020 } else {
2121 " https://repo1.maven.org/maven2/com/google/devtools/ksp/com.google.devtools.ksp.gradle.plugin/maven-metadata.xml"
22- },
23- prefix = " 2.2.20"
22+ }
2423 )
2524
2625 File (" gradle/libraries.toml" ).let { file ->
2726 file.writeText(
2827 file.readText()
2928 .replaceVersion(" kotlin-plugin" , kotlinVersion)
30- .replaceVersion(" kotlin-plugin-max" , kotlinVersion)
3129 .replaceVersion(" ksp" , kspVersion)
3230 )
3331 }
@@ -77,7 +75,9 @@ fun getLatestVersion(url: String, prefix: String? = null): String {
7775}
7876
7977fun runCommand (vararg args : String ): String {
78+ println (" Running command: '${args.joinToString(" " )} '" )
8079 val builder = ProcessBuilder (* args)
80+ .redirectErrorStream(true )
8181 .redirectError(ProcessBuilder .Redirect .INHERIT )
8282 val process = builder.start()
8383 val output = StringBuilder ()
@@ -88,7 +88,7 @@ fun runCommand(vararg args: String): String {
8888 }
8989 val ret = process.waitFor()
9090 if (ret != 0 ) {
91- throw Exception (" command ${args.joinToString(" " )} failed:\n $output " )
91+ throw Exception (" command ${args.joinToString(" " )} failed (ret= $ret ) :\n $output " )
9292 }
9393 return output.toString().trim()
9494}
0 commit comments