From 6e07b1cd99683ac5f2b326fae15f904f538f5f55 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Mon, 29 May 2017 17:19:27 +0300 Subject: [PATCH] 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 --- .../cli/common/arguments/DefaultValues.kt | 2 +- .../kotlin/gradle/KotlinGradlePluginIT.kt | 49 +++++++++++++++++++ .../kotlin/gradle/dsl/KotlinCommonOptions.kt | 8 +-- .../kotlin/gradle/dsl/KotlinJsOptionsBase.kt | 16 +++--- .../kotlin/gradle/dsl/KotlinJvmOptionsBase.kt | 16 +++--- 5 files changed, 70 insertions(+), 21 deletions(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/DefaultValues.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/DefaultValues.kt index 18eb1cca519..ce3952ea2eb 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/DefaultValues.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/DefaultValues.kt @@ -29,7 +29,7 @@ open class DefaultValues(val defaultValue: String, val possibleValues: List