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:
+21
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user