[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:
+7
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user