[Gradle] Suppressed GradleExecutionContext.fromProject

^KT-56904
This commit is contained in:
Dmitrii Krasnov
2023-12-20 16:12:20 +01:00
committed by Space Team
parent afcef3e20e
commit b90ff94451
2 changed files with 2 additions and 0 deletions
@@ -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))
/**
@@ -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),