Dependency version information is missing
fenggit opened this issue · 4 comments
fenggit commented
fenggit commented
I also set:coordinates("io.github.test1233", "MyTest", "1.0.0")
jocoand commented
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 commented
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 commented
@ianthetechie Thank you so much for the solution, it worked perfectly for me.