[kotlin-test] Alignment constraints for legacy artifacts KT-61969
This commit is contained in:
committed by
Space Team
parent
446cd1eec9
commit
ffe54d3fc4
@@ -382,4 +382,19 @@ configurations {
|
|||||||
legacyConfigurationDeps(project)
|
legacyConfigurationDeps(project)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val jvmMainApi by getting
|
||||||
|
val nativeApiElements by creating
|
||||||
|
for (artifactName in listOf("kotlin-test-common", "kotlin-test-annotations-common")) {
|
||||||
|
dependencies {
|
||||||
|
constraints {
|
||||||
|
val artifactCoordinates = "$group:$artifactName:$version"
|
||||||
|
// there is no dependency anymore from kotlin-test to kotlin-test-common and -annotations-common,
|
||||||
|
// but use this constraint to align it if another library brings it transitively
|
||||||
|
jvmMainApi(artifactCoordinates)
|
||||||
|
metadataApiElements(artifactCoordinates)
|
||||||
|
nativeApiElements(artifactCoordinates)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user