1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix version for debug.

This commit is contained in:
Cedric Beust 2016-07-12 03:18:28 -08:00
parent 05ba43b599
commit e7407fdcf8

View file

@ -37,7 +37,7 @@ class KFiles {
// kobalt-wrapper.properties: kobalt.version=0.827
// When Kobalt can't find the newest jar file, it will instead use the classes produced by IDEA
// in the directories specified here:
val previousVersion = ((Kobalt.version.toFloat()* 1000 - 1) / 1000).toString()
val previousVersion = "0." + (Kobalt.version.split(".")[1].toInt() - 1).toString()
val previousJar = joinDir(distributionsDir, "kobalt-" + previousVersion,
"kobalt/wrapper/kobalt-" + previousVersion + ".jar")
val result = listOf("", "modules/kobalt-plugin-api", "modules/wrapper").map {