[Gradle] Fix kotlin-native-gradle-plugin to be compatible with KonanToolRunner

KonanToolRunner was changed to be compatible with
Gradle Configuration Cache.
This commit is contained in:
Anton Lakotka
2022-06-15 12:24:24 +02:00
committed by Space
parent 98c47a8a51
commit 2f5ae70cef
2 changed files with 12 additions and 3 deletions
@@ -25,6 +25,13 @@ import java.util.concurrent.ConcurrentHashMap
abstract class KotlinToolRunner(
private val executionContext: GradleExecutionContext
) {
@Deprecated(
"Using Project object is not compatible with Gradle Configuration Cache",
ReplaceWith("KotlinToolRunner(GradleExecutionContext.fromTaskContext())"),
DeprecationLevel.WARNING
)
constructor(project: Project): this(GradleExecutionContext.fromProject(project))
/**
* Context Services that are required for [KotlinToolRunner] during Gradle Task Execution Phase
*/