From 373a250b2855e8ac85e988caa3867614cc823779 Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Mon, 24 Jun 2019 21:02:52 +0300 Subject: [PATCH] Build: Exclude common stdlib only from dist/lib contents configurations --- prepare/compiler/build.gradle.kts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/prepare/compiler/build.gradle.kts b/prepare/compiler/build.gradle.kts index dadf435c169..000abcf6e1e 100644 --- a/prepare/compiler/build.gradle.kts +++ b/prepare/compiler/build.gradle.kts @@ -39,10 +39,19 @@ val proguardLibraries by configurations.creating { } // Libraries to copy to the lib directory -val libraries by configurations.creating +val libraries by configurations.creating { + exclude("org.jetbrains.kotlin", "kotlin-stdlib-common") +} + // Compiler plugins should be copied without `kotlin-` prefix -val compilerPlugins by configurations.creating -val sources by configurations.creating +val compilerPlugins by configurations.creating { + exclude("org.jetbrains.kotlin", "kotlin-stdlib-common") +} + +val sources by configurations.creating { + exclude("org.jetbrains.kotlin", "kotlin-stdlib-common") +} + // contents of dist/maven directory val distMavenContents by configurations.creating // contents of dist/common directory @@ -114,8 +123,6 @@ configurations.all { resolutionStrategy { preferProjectModules() } - - exclude("org.jetbrains.kotlin", "kotlin-stdlib-common") } dependencies {