Skip to content

Conversation

@martinbonnin
Copy link
Contributor

@martinbonnin martinbonnin commented Dec 13, 2024

This adds the apollo metadata as variants in the "java" software component instead of requiring a separate publication. This should fix publishing modules with apollo dependencies.

This is wildly experiment and only for JVM targets due to https://youtrack.jetbrains.com/issue/KT-58830/

If using this, you can remove the apollo publication:

apollo {
  // add this (experimental)
  useGradleVariants.set(true)
}

// remove this
publishing {
  publications {
    create<MavenPublication>("apollo") {
      from(components["apollo"])
      artifactId = "foo-apollo"
    }
  }
}

@martinbonnin martinbonnin requested a review from BoD as a code owner December 13, 2024 17:38
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Dec 13, 2024

✅ Docs Preview Ready

No new or changed pages found.

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@martinbonnin martinbonnin merged commit 227f250 into main Dec 16, 2024
6 checks passed
@martinbonnin martinbonnin deleted the expose-variants branch December 16, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants