-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Tracking of artifact dependency coordinates by BootJar and BootWar may break artifact transforms in sub-projects #31216
Comments
Since this is an optimization, perhaps we can push it back to 3.1 |
Unfortunately, I think it'll require changes to the public API of some tasks. I am not sure that those changes can be done in a backwards compatible way. |
Having looked at this more closely, I'm pretty confident that it can be done in a backwards compatible way. It's the My current thinking is that we can replace the Making the |
@wilkinsona just a heads up that this issue can break artifact transforms against sub-projects if any task resolves a configuration before the library file is built: |
The more I think about this, the more it feels like it may be a Gradle bug. AFAIK, we're not doing anything wrong here. It may be suboptimal from a performance perspective, but AFAIK there's nothing to say that we should not call I've asked the Gradle team before if there's a better way to map from a file back to the dependency coordinates from which it was resolved but didn't manage to get much traction. I'll ask them again. |
It's not a bug: resolving artifacts inside an In addition to being incompatible with transforms, we notice the performance impact to dependency locking and other metadata resolution only use cases, and have occasional failures of |
This is the reduced version of what's going on:
|
Thanks, Danny. I'm not sure I agree that it isn't a bug. For Boot's purposes, we don't need the file to exist – a |
Yeah, I'd definitely consider Gradle not failing fast on this a bug. |
#31215 is a prerequisite for this.
From the Gradle 7.5 release notes:
The text was updated successfully, but these errors were encountered: