-
Notifications
You must be signed in to change notification settings - Fork 202
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
Handle non-jar / metadata-only artifacts #424
Comments
0.31.0 still fails to detect one dependency in one of my projects, and that's |
@sschuberth your issue is due to JCenter which behaves oddly because it only half proxies queries. If you add Maven Central then it works fine. While it is only a metadata dependency, the declaration doesn't have an extension or classifier in the dependency declaration which is what we don't support (e.g. @serebit Your issue appears to be due to needing the dependency capabilities copied over. That dependency has a platform capability (e.g. JVM) to select from. I would need a sample project to test against. The api implies that we could provide the source's |
Would have have some more details on that, so we could report this to JCenter / JFrog? |
The error (
JCenter proxies explicit versions to Central, but not metadata queries, and can provide stale results from its cache (e.g. |
Thanks, BTW, with version 0.32.0 I'm now getting something strange:
Where |
I'm not really sure, to be honest. We iterate over all projects to resolve their external dependencies by copying their configuration. It seems the copying confused it, but not sure what the expectation would be either way. The error is,
|
I've hijacked this somewhat related ticket, let's see if there's a reaction from JFrog. |
Oh, this is probably a side-effect of including the "super configuration" dependencies for #334. The |
Sounds a bit as if the |
I bet it's because the when we resolve the latest, we filter down to the |
Want me to create a new issue for that? 😉 |
haha, sure. I just verified it fixed your project and double checking it doesn't regress #334. 😃 |
Wow, thanks! If you already have the fix, I guess we can spare the issue creation, right? |
either way is fine. When checking against https://github.com/zacsweers/catchup there seems to be a regression in v32 where the super configuration causes some of its dependencies to not resolve, e.g.
So kind of stuck as it seems either we fix for #423 or revert it, unless there's more metadata (like capabilities) we need to copy over? |
I think unwrangling this is going to be hard, as either approach results in some variant failure. There might be a partial fix for #423 by special casing Kotlin's stdlib and not bringing everything else across. A new ticket is probably worthwhile since its late again here. |
Okay, that did it. So I'll just keep any super configuration's external dependency that belongs to the group |
okay, v33 is being released 🤞 |
Sadly, v33 doesn't fix |
@serebit Please try 0.34, which has an addition fix for Kotlin MPP (special case copy of their legacy metadata). |
In regards to
com.github.ajalt.clikt:clikt
, this is because we don't handle non-jar dependencies yet. This dependency is metadata only, so anextension
is applied during resolution. When we create our dependency query, we are not applying the classifier and extension. This causes a failure because Gradle is looking for a jar and fails.I did find where to extract this information in #224 but never got around to adding it into the query. It's probably very simple if you'd like to give it a shot. It should just take a little formatting magic in the query string.
Originally posted by @ben-manes in #334 (comment)
The text was updated successfully, but these errors were encountered: