Open sschuberth opened 3 months ago
I think we can improve the documentation there. Thanks for making us aware.
The first approach is Gradle core API. If you only use the detection plugin (for whatever reason), you can use that.
The second is the notation added by the resolution plugin that allows for a more compact notation with some tweaks. It's almost equivalent, but the notation also tells the resolution plugin not to register any standard strategy (which it does for most cases) so that you do not run into "weird" Gradle behavior like this one.
Bottom line:
Thanks for the clarification. It'd indeed be good if that explanation was in the docs as well!
The docs both mention
and
syntax. Are they semantically equivalent? Is one syntax preferable over the other?