Gradle: set default values of languageVersion and apiVersion to null

Before the change, Gradle always explicitly set language and api
version to the latest version, preventing the compiler
from inferencing the arguments.

     #KT-18047 fixed
This commit is contained in:
Alexey Tsvetkov
2017-05-29 17:19:27 +03:00
parent b06b18de07
commit 6e07b1cd99
5 changed files with 70 additions and 21 deletions
@@ -29,7 +29,7 @@ open class DefaultValues(val defaultValue: String, val possibleValues: List<Stri
object StringNullDefault : DefaultValues("null")
object LanguageVersions : DefaultValues(
"\"" + LanguageVersion.LATEST_STABLE.versionString + "\"",
"null",
LanguageVersion.values().map { "\"${it.description}\"" }
)