From ed82465c3cba6140b787f2c67dc21d12ff4ec213 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 7 May 2020 21:57:15 +0900 Subject: [PATCH] Fix eager inter-project dependency --- .../kotlin-dist-for-ide/build.gradle.kts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/prepare/ide-plugin-dependencies/kotlin-dist-for-ide/build.gradle.kts b/prepare/ide-plugin-dependencies/kotlin-dist-for-ide/build.gradle.kts index 745de464113..95857d0b4f8 100644 --- a/prepare/ide-plugin-dependencies/kotlin-dist-for-ide/build.gradle.kts +++ b/prepare/ide-plugin-dependencies/kotlin-dist-for-ide/build.gradle.kts @@ -8,12 +8,15 @@ idePluginDependency { val jar: Jar by tasks jar.apply { - dependsOn(":kotlin-compiler:distKotlinc") -// from { -// val distKotlincTask = project(":kotlin-compiler").tasks.getByName("distKotlinc") -// (distKotlincTask) -// } + val compilerProjectName = ":kotlin-compiler" + val distTaskName = "distKotlinc" + dependsOn("$compilerProjectName:$distTaskName") + + from { + val distKotlincTask = project(compilerProjectName).tasks.getByName(distTaskName) + distKotlincTask.outputs.files + } } sourcesJar()