-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Update Gradle docs to use module replacement rather than dependency substitution #25944
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
Update Gradle docs to use module replacement rather than dependency substitution #25944
Conversation
Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
I don't know if it's possible but the syntax is valid for both kotlin and groovy so if it's possible to say the block is both... |
This doesn't quite work as proposed due to this behaviour that's described in Gradle's docs:
To get it to work, an explicit dependency on
This is one line shorter than what we currently document:
The currently documented approach has the advantage of applying the substitution to every configuration with a dependency on I'm in two minds now as to whether or not we should make this change. In some situations, a module replacement will be better while in others a dependency substitution is a better choice. The module replacement is slightly more concise and I find it easier to read, but it's also slightly less likely to produce the desired outcome in all configurations. Let's see what the rest of the team thinks. |
I'm going to wait for further feedback on acceptance before making requested changes, but thanks for alerting me ;) |
See gh-25944 Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
Thank you, @xenoterracide. |
Signed-off-by: Caleb Cushing xenoterracide@gmail.com