-
Notifications
You must be signed in to change notification settings - Fork 201
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
unable to discover latest version of google guava #845
Comments
You’d need to look at the info log. Guava has bad metadata unfortunately, so unsure |
Second this issue, plus some more affected libs:
|
Is there any config option to ignore corrupted metadata if type and version do match the requirements? |
You could disable module metadata from the source repositories. repositories {
maven {
url = uri("http://repo.mycompany.com/repo")
metadataSources {
mavenPom()
artifact()
ignoreGradleMetadataRedirection()
}
}
} |
Nice, that "fixed" it. Could there be any side-effects of this I should be aware of? 🙈 |
For server-side projects then I don't think module metadata is customized very often because so many other build tools are used. I believe its primarily used by gradle only environments like android and kotlin for their cross compilation needs (webasm/arm64, android variant/flavors). Those two platforms tend to be brittle and full of hacks that don't honor gradle's apis so I imagine the module metadata was an attempt at rehabilitation to give their teams a path to become good citizens. |
Well, turns out that this "fix" is breaking certain dependencies like |
There might be ways to fix the module metadata, but I'm not very knowledgable there. It seems that upgrading the kotlin plugin to Otherwise as a quick hack, you could do something ugly just for this plugin task by replacing the repositories prior to evaluation. Assuming you only run this task by itself then it won't negatively impact the rest of your build tasks.dependencyUpdates.doFirst {
repositories {
clear()
maven { ... }
}
} |
using the pluings
The text was updated successfully, but these errors were encountered: