-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maven-publish
doesn't play well with -apollo
modules generated when generateApolloMetadata
is used
#4350
Comments
maven-publish
doesn't play well with -apollo
module generated when generateApolloMetadata
is usedmaven-publish
doesn't play well with -apollo
modules generated when generateApolloMetadata
is used
Good catch. It's exactly this Gradle issue: gradle/gradle#16123 I'm a bit puzzled what the best fix for this is. Maybe we could "just" publish the Something else we could look into is the Kotlin multiplatform plugin. They typically publish several publication at different coordinates and it looks like it's working fine 🤔 . So maybe there's some inspiration to get from there. |
For the record, v4 will only expose a Gradle software component and let users configure publications as needed and should therefore fix this issue. |
@benoitletondor any chance you could try the v4 snapshots? Did it fix this issue? |
Hey @martinbonnin , very sorry but my company (and myself) moved to another project where we don't use Apollo Kotlin anymore so I don't have a way of testing that right now :( very sorry |
No worries, thanks for the quick reply! I'll close it for now and reopen if that ever becomes an issue again |
Summary
When trying to publish a new version of our SDK with a
:core
module having aservice
usinggenerateApolloMetadata
and another module (:messaging-core
) depending on that module, we ran into an issue preventing the build:Version
3.5.0
Logs
https://jitpack.io/com/github/nabla/nabla-android/2a1f725fb6/build.log
More details
This is not an apollo issue, more of a gradle/maven plugin one, more details in the gradle issue: gradle/gradle#1061
We found a workaround setting
apollo
modules asalias
: https://github.com/nabla/nabla-android/blob/main/core/build.gradle#L95The text was updated successfully, but these errors were encountered: