Write compiler and stdlib versions from gradle build

This commit is contained in:
Ilya Gorbunov
2017-10-28 03:07:46 +03:00
parent 6fe299cd5b
commit 093f796fc7
5 changed files with 54 additions and 23 deletions
@@ -68,8 +68,7 @@ public class KotlinVersion(val major: Int, val minor: Int, val patch: Int) : Com
/**
* Returns the current version of the Kotlin standard library.
*/
// TODO: get from metadata or hardcode automatically during build
@kotlin.jvm.JvmField
public val CURRENT: KotlinVersion = KotlinVersion(1, 2, 0)
public val CURRENT: KotlinVersion = KotlinVersion(1, 2, 0) // value is written here automatically during build
}
}