[kpm] kgp-idea: Publish testFixtures
^KT-52568 In Progress
This commit is contained in:
committed by
Space
parent
3932143ed0
commit
132743cb7a
@@ -1,3 +1,5 @@
|
|||||||
|
import plugins.KotlinBuildPublishingPlugin.Companion.ADHOC_COMPONENT_NAME
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
`java-test-fixtures`
|
`java-test-fixtures`
|
||||||
@@ -29,7 +31,13 @@ dependencies {
|
|||||||
testFixturesImplementation(project(":kotlin-test:kotlin-test-junit"))
|
testFixturesImplementation(project(":kotlin-test:kotlin-test-junit"))
|
||||||
}
|
}
|
||||||
|
|
||||||
publish()
|
publish(moduleMetadata = true) {
|
||||||
|
val kotlinLibraryComponent = components[ADHOC_COMPONENT_NAME] as AdhocComponentWithVariants
|
||||||
|
kotlinLibraryComponent.addVariantsFromConfiguration(configurations.testFixturesApiElements.get()) { mapToMavenScope("compile") }
|
||||||
|
kotlinLibraryComponent.addVariantsFromConfiguration(configurations.testFixturesRuntimeElements.get()) { mapToMavenScope("runtime") }
|
||||||
|
suppressAllPomMetadataWarnings()
|
||||||
|
}
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user