Skip to content

Commit c24cf34

Browse files
authored
Disable test fixtures publishing (#61)
While #53 isn't addressed. --- ### #53 Currently, the library is "deployed" to JitPack. Maven Central was already a desire, but JitPack is actually breaking test fixtures variant in the library's Gradle Module Metadata. As a result, no one can consume the fixtures artifact. https://jitpack.io/com/github/gabrielfeo/gradle-enterprise-api-kotlin/0.16.0-beta/gradle-enterprise-api-kotlin-0.16.0-beta.module https://gradle-community.slack.com/archives/CAHSN3LDN/p1683828623398169
1 parent fb5088e commit c24cf34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ java {
143143
}
144144
}
145145

146+
components.getByName<AdhocComponentWithVariants>("java").apply {
147+
withVariantsFromConfiguration(configurations["testFixturesApiElements"]) { skip() }
148+
withVariantsFromConfiguration(configurations["testFixturesRuntimeElements"]) { skip() }
149+
}
150+
146151
tasks.withType<DokkaTask>().configureEach {
147152
dokkaSourceSets.all {
148153
sourceLink {

0 commit comments

Comments
 (0)