File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,12 @@ fun getProperty(
1616
1717publishing {
1818 publications {
19- val javaComponent = components[" java" ] as AdhocComponentWithVariants
20- configurations.findByName(" testFixturesApiElements" )?.let { javaComponent.withVariantsFromConfiguration(it) { skip() } }
21- configurations.findByName(" testFixturesRuntimeElements" )?.let { javaComponent.withVariantsFromConfiguration(it) { skip() } }
22-
2319 create<MavenPublication >(" publish-${project.name} " ) {
2420 groupId = rootProject.group.toString()
2521 version = rootProject.version.toString()
2622 println (" version to be published: ${rootProject.version} " )
2723 artifactId = project.name
28- from(javaComponent )
24+ from(components[ " java " ] )
2925 pom {
3026 name.set(project.name)
3127 description.set(project.properties[" projectDescription" ].toString())
Original file line number Diff line number Diff line change @@ -13,3 +13,7 @@ dependencies {
1313
1414 testFixturesImplementation(libs.kotest.framework.api)
1515}
16+
17+ val javaComponent = components[" java" ] as AdhocComponentWithVariants
18+ javaComponent.withVariantsFromConfiguration(configurations[" testFixturesApiElements" ]) { skip() }
19+ javaComponent.withVariantsFromConfiguration(configurations[" testFixturesRuntimeElements" ]) { skip() }
You can’t perform that action at this time.
0 commit comments