diff --git a/.github/workflows/gradle-publish-snapshot.yml b/.github/workflows/gradle-publish-snapshot.yml index dc3ee2ba..f4551219 100644 --- a/.github/workflows/gradle-publish-snapshot.yml +++ b/.github/workflows/gradle-publish-snapshot.yml @@ -34,7 +34,7 @@ jobs: gradle-version: current - name: Publish to Maven Repository - run: gradle publish + run: gradle publish --parallel env: SNAPSHOT: true gpg_private_key: ${{ secrets.gpg_private_key }} diff --git a/buildSrc/src/main/kotlin/stove-publishing.gradle.kts b/buildSrc/src/main/kotlin/stove-publishing.gradle.kts index a8831f64..7a70a5ba 100644 --- a/buildSrc/src/main/kotlin/stove-publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/stove-publishing.gradle.kts @@ -21,7 +21,22 @@ publishing { version = rootProject.version.toString() println("version to be published: ${rootProject.version}") artifactId = project.name - from(components["java"]) + val javaComponent = components["java"] + from(javaComponent) + + javaComponent as AdhocComponentWithVariants + + configurations.findByName("testFixturesApiElements")?.let { + javaComponent.withVariantsFromConfiguration(it) { + skip() + } + } + configurations.findByName("testFixturesRuntimeElements")?.let { + javaComponent.withVariantsFromConfiguration(it) { + skip() + } + } + pom { name.set(project.name) description.set(project.properties["projectDescription"].toString())