Warn on using 'jdkHome' option in Gradle builds.
User should instead use KotlinJavaToolchain that will take care of tracking major java version and provide nicer API. Gradle will still pass jdkHome value to the compiler, but it should be changed in Kotlin 1.6 release. ^KT-45611 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
74d1812461
commit
800e382ba9
+5
@@ -30,6 +30,11 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
|
||||
@Argument(value = "-include-runtime", description = "Include Kotlin runtime into the resulting JAR")
|
||||
var includeRuntime: Boolean by FreezableVar(false)
|
||||
|
||||
@DeprecatedOption(
|
||||
message = "This option is not working well with Gradle caching and will be removed in the future.",
|
||||
removeAfter = "1.7",
|
||||
level = DeprecationLevel.WARNING
|
||||
)
|
||||
@GradleOption(DefaultValues.StringNullDefault::class)
|
||||
@Argument(
|
||||
value = "-jdk-home",
|
||||
|
||||
Reference in New Issue
Block a user