Avoid using compile
configuration for Gradle
#22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The existing suggestion for using
compile
dependencies has been discouraged with Gradle 3.4 way way back.On a recent Gradle version you will see a scary deprecation warning.
Upon turning on
--warning-mode all
you will discover it is exactly about thatcompile
declaration that is suggested.This PR simply swaps the
compile
out for animplementation
.The Java Library plugin configurations (The Java Library Plugin - Gradle 6.6 User Manual)
If there is a script which writes that file, I wasn't able to find it linked, and that should be updated as well to use
implementation
instead ofcompile
.