-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature request: filter out BOM artifacts #54
Comments
Nice, I don't have any projects using a bom. Can you provide an example GAV for one and I can work on an example based on that. |
Kotlin has one - |
I'm hoping to get to this one soon. There is a large Thanks for your patience. |
Finally hitting this issue now that we're bringing in the compose-bom. From a technical standpoint, I'm not sure how to approach it quite yet. This is our code used to traverse the dependency tree and collect info about artifacts. Lines 18 to 24 in 10ee510
Are you aware of another Gradle API to traverse the dependency tree which contains packaging info? That would allow this change to be made. Again, thanks for your patience on this issue! |
A workaround could be to add
Returning Gross, but a possible workaround. |
@ZacSweers - @devPalacio and I have been adding Version Catalogs on our projects here and see the same behavior. Because these show up in the Please use the I'm going to close this since:
Thank you, and we can re-open if you are aware of some way we can do this which is cleaner. |
It appears that it is possible to determine this. This is how licensee did it: cashapp/licensee#311 |
If this is added, do we have it behind a flag, or make it default behavior? |
Make it the default for sure |
Hey all 👋 Can I just check if this is the same as an issue I am seeing, please. When I run
When I run the same command on the same commit locally it fails:
The difference seems to be from a single dependency which not present locally but seems to appear only on the CI.
If I follow the rebaseling instructions locally and push to the CI I get the reverse error (the dependency was found but not declared). Have I stumbled upon this issue or is my issue different? I'm happy to raise a new issue if so. ❤️ |
@mezpahlan I think your issue could be the same or similar to: #43 Not sure if it's related to this one though. By the way, I have been affected by a similar problem (different results locally and on CI) in one of the projects in the past. |
Thanks @azabost I'll monitor that issue. |
These are not actually a real dependency, rather they just dictate the version of other dependencies owned by it. This leaks across buildscript classpaths too. For example -
buildscript { dependencies { classpath(platform(libs.coroutines.bom)) } }
will make this show up as a configuration dependency in all subprojects using dependencyGuard as well even if they don't use coroutines. My sense here is that it should filter these.The text was updated successfully, but these errors were encountered: