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:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user