From 4a64dd08bd0636aeb7b36b936be76384a38cacc7 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 14 Feb 2018 17:12:49 +0700 Subject: [PATCH] [gradle-plugin] Add TODO to replace HostManager with PlatformManager --- .../kotlin/org/jetbrains/kotlin/gradle/plugin/KonanPlugin.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/kotlin-native-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KonanPlugin.kt b/tools/kotlin-native-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KonanPlugin.kt index d6273724b19..4567b58ba80 100644 --- a/tools/kotlin-native-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KonanPlugin.kt +++ b/tools/kotlin-native-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KonanPlugin.kt @@ -74,6 +74,11 @@ internal val Project.konanArtifactsContainer: NamedDomainObjectContainer> +// TODO: The Kotlin/Native compiler is downloaded manually by a special task so the compilation tasks +// are configured without the compile distribution. After target management refactoring +// we need .properties files from the distribution to configure targets. This is worked around here +// by using HostManager instead of PlatformManager. But we need to download the compiler at the configuration +// stage (e.g. by getting it from maven as a plugin dependency) and bring back the PlatformManager here. internal val Project.hostManager: HostManager get() = findProperty("hostManager") as HostManager? ?: HostManager(customerDistribution(konanHome))