This message was deleted.
# develocity
s
This message was deleted.
➕ 2
j
Maybe this could be an additional filter option in the "Resolutions" drop down:
w
Thank you Jendrik for the suggestion. We added it to our list of requested features for Gradle Build Scans.
Do you have a suggestion how the filter entry should be called? Anything better than “not constraints” ?
j
Thanks Stefan! I think the direction of "not constraints" is good. I think I would rather say "no constraints" than "only dependencies" (because for many users it might not be clear that some of the things are constraints or what a constraint is at all) Maybe
Resolution: Hide Constraints
w
Is there anything else apart from constraints and dependencies?
j
It is not completely clear to me either what the right wording is. Technically every entry you see in the tree is the "component" that was resolved to. And you see one component several times, but written differently depending on how it was declared in that place. If you open the details it's the same everywhere (this can already be misleading, but it is a separate topic). If it was a constraint oroginally, it is showing the component the constraint was used to resolve to. But the version it shows and the label differ depending on what was defined in that place. E.g.
com.esaulpaugh:headlong:{strictly 6.1.1}  -> 6.1.1
is the same component (jar) as
com.esaulpaugh:headlong:6.1.1
. Right now, the entries are already "labeled" 1. "nothing" (aka normal dependency) 2. "constraint" (in this place, a constraint was defined that was used the resolve the corresponding component) 3. "platform" (aka a normal dependency to something that was resolved to a variant ot "org.gradle.category=platform") From a general dependency resolution perspective, (3) is rather odd/special. For the "Java World" however, it makes sense to mark it specifically. But if in build scans, there is already a concept of "label" here, there could also be an extra filter where you can show/hide things with certain labels. Maybe there will be more in the future (?) Something like:
Copy code
[ ] no label
[ ] constraint
[ ] platform
And then you can turn on/off what is shown
There could be an additional label "strict constraint", which would allow you to filter out only the things added by the consistent resolution. From a usability perspective, this would make sense as a separate category I think.
thank you 1