Skip to content
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

Dependency version information is missing #802

Open
fenggit opened this issue Jun 27, 2024 · 4 comments
Open

Dependency version information is missing #802

fenggit opened this issue Jun 27, 2024 · 4 comments

Comments

@fenggit
Copy link

fenggit commented Jun 27, 2024

After successfully publishing Android to Maven Central, the Maven Central backend prompts that Dependency version information is missing. How should I configure it?

image
@fenggit
Copy link
Author

fenggit commented Jun 28, 2024

I also set:coordinates("io.github.test1233", "MyTest", "1.0.0")

@jocoand
Copy link

jocoand commented Jun 30, 2024

My workaround is by adding the versions explicitly to all my library dependencies

implementation("androidx.compose.ui")
// update to 
implementation("androidx.compose.ui:1.6.8")

@ianthetechie
Copy link

I spent an entire day hunting down a similar issue. I had specified all of my dependency versions, but the Jetpack Compose libs were controlled by a gradle platform + BOM package.

Turns out this package isn't available on Maven Central. So I had to add the Google repository manually to the pom builder. I don't know why there isn't a helper in the DSL for this, but I had to resort to hand coding. Here's what it looks like:

pom {
  // ...
  withXml {
    def repo = asNode().appendNode('repositories').appendNode('repository')
    repo.appendNode('name', 'Google')
    repo.appendNode('id', 'google')
    repo.appendNode('url', ' https://maven.google.com/')
  }
}

@developerchunk
Copy link

@ianthetechie Thank you so much for the solution, it worked perfectly for me.

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

No branches or pull requests

4 participants