Skip to content
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

Merged
merged 9 commits into from Nov 2, 2018

Conversation

rpalcolea
Copy link
Member

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

@coveralls
Copy link

coveralls commented Nov 2, 2018

Coverage Status

Coverage increased (+0.2%) to 85.315% when pulling 8338efd on deprecated-dependency-configuration-rule into 0b1023e on master.

@rpalcolea
Copy link
Member Author

Heads up: added support for replacing in project dependencies too

def result = runTasksSuccessfully('fixGradleLint', '--warning-mode=none')

then:
def buildGradle = new File(projectDir, 'sub1/build.gradle')
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

Copy link
Member

@OdysseusLives OdysseusLives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@rpalcolea rpalcolea merged commit b09165e into master Nov 2, 2018
@rpalcolea rpalcolea deleted the deprecated-dependency-configuration-rule branch November 2, 2018 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants