[Gradle] Suppressed GradleExecutionContext.fromProject
^KT-56904
This commit is contained in:
committed by
Space Team
parent
afcef3e20e
commit
b90ff94451
+1
@@ -31,6 +31,7 @@ abstract class KotlinToolRunner(
|
||||
ReplaceWith("KotlinToolRunner(GradleExecutionContext.fromTaskContext())"),
|
||||
DeprecationLevel.WARNING
|
||||
)
|
||||
@Suppress("DEPRECATION") // we have KT-64427 to remove this constructor
|
||||
constructor(project: Project) : this(GradleExecutionContext.fromProject(project))
|
||||
|
||||
/**
|
||||
|
||||
+1
@@ -263,6 +263,7 @@ internal class KotlinNativeLibraryGenerationRunner(
|
||||
AbstractKotlinNativeCInteropRunner("generatePlatformLibraries", settings, executionContext, metricsReporter) {
|
||||
|
||||
companion object {
|
||||
@Suppress("DEPRECATION") // TODO(Dmitrii Krasnov): after KT-52567 it will be possible to use GradleExecutionContext#fromTaskContext here
|
||||
fun fromProject(project: Project) = KotlinNativeLibraryGenerationRunner(
|
||||
settings = Settings.of(project.konanHome, project.konanDataDir, project),
|
||||
executionContext = GradleExecutionContext.fromProject(project),
|
||||
|
||||
Reference in New Issue
Block a user