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
Deprecated dependency configuration rule #204
Conversation
Heads up: added support for replacing in project dependencies too |
src/main/resources/META-INF/lint-rules/all-dependency.properties
Outdated
Show resolved
Hide resolved
def result = runTasksSuccessfully('fixGradleLint', '--warning-mode=none') | ||
|
||
then: | ||
def buildGradle = new File(projectDir, 'sub1/build.gradle') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be clearer for this variable name to indicate it is the sub1's build file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
Co-Authored-By: rpalcolea <rperezalcolea@netflix.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This is work for #203
Several dependencies configurations have been deprecated but gradle-lint-plugin makes recommendations to use those.
While it could be possible to modify existing rules to use the non-deprecated configurations, it would break backwards compatibility since this was introduced in gradle 4.7 so it isn't that old.
I propose to introduce this rule that applies for gradle 4.7 which would replace configurations and in the future we can revisit this. Perhaps for Gradle 6 it would make sense to stop supporting Gradle < 4.5