Build: Fix dependency leak on :kotlin-compiler in kotlin-native-library-reader

Introduce mavenCompileScope to manage compile records in pom.xml
This commit is contained in:
Vyacheslav Gerasimov
2019-04-19 17:55:22 +03:00
parent 57cb59bfc7
commit 82f9757138
+10 -1
View File
@@ -1,8 +1,17 @@
import org.gradle.api.artifacts.maven.Conf2ScopeMappingContainer.COMPILE
plugins {
maven
kotlin("jvm")
id("jps-compatible")
}
val mavenCompileScope by configurations.creating {
the<MavenPluginConvention>()
.conf2ScopeMappings
.addMapping(0, this, COMPILE)
}
description = "Kotlin/Native deserializer and library reader"
dependencies {
@@ -13,7 +22,7 @@ dependencies {
compileOnly(project(":compiler:cli-common"))
// This dependency is necessary to keep the right dependency record inside of POM file:
compile(projectRuntimeJar(":kotlin-compiler"))
mavenCompileScope(projectRuntimeJar(":kotlin-compiler"))
compile(project(":kotlin-native:kotlin-native-utils"))
}