[stdlib-mpp] Add dependency constraints to JVM variant, KT-55297
This commit is contained in:
committed by
Space Team
parent
b0106de209
commit
21565c6128
@@ -445,6 +445,18 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
val jvmMainImplementation by configurations.getting
|
||||
constraints {
|
||||
// there is no dependency anymore from kotlin-stdlib to kotlin-stdlib-common,
|
||||
// but use this constraint to align it if another library brings it transitively
|
||||
jvmMainImplementation(project(":kotlin-stdlib-common"))
|
||||
// to avoid split package and duplicate classes on classpath after moving them from these artifacts in 1.8.0
|
||||
jvmMainImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0")
|
||||
jvmMainImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
val metadataJar by existing(Jar::class) {
|
||||
archiveAppendix.set("metadata")
|
||||
|
||||
Reference in New Issue
Block a user