Add new ways to set Kotlin daemon JVM arguments.

Additionally to inheriting Gradle daemon arguments or configuring via
 Gradle daemon arguments system property, it is also possible now
 to configure arguments either using "kotlin.daemon.jvmargs" property
 or extension DSL.

Extension DSL overrides special gradle property arguments, which
overrides Gradle daemon arguments.

^KT-45747 Fixed
This commit is contained in:
Yahor Berdnikau
2021-06-27 21:07:26 +02:00
committed by Space
parent b98322c1b4
commit da1d49e622
13 changed files with 341 additions and 15 deletions
@@ -0,0 +1,21 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.tasks
import org.gradle.api.Task
import org.gradle.api.provider.ListProperty
import org.gradle.api.tasks.Internal
/**
* Task is using Kotlin daemon to run compilation.
*/
interface CompileUsingKotlinDaemon : Task {
/**
* Provides JVM arguments to Kotlin daemon, default is `null` if "kotlin.daemon.jvmargs" property is not set.
*/
@get:Internal
val kotlinDaemonJvmArguments: ListProperty<String>
}