commit | f136ac73a62fdb3ace7cbb664864921e227a0d55 | [log] [tgz] |
---|---|---|
author | Chris Warrington <cmw@google.com> | Mon Jan 14 11:50:47 2019 +0000 |
committer | Chris Warrington <cmw@google.com> | Wed Jan 23 11:13:28 2019 +0000 |
tree | 48f2816b57de766d4b201c26a4b8215be7397d7d | |
parent | b201e343a32a3e355ab7e215031c4f3022774e90 [diff] |
Lint check: Deprecated Gradle configuration use. Added new deprecation warning for use of deprecated configurations in build.gradle. This includes quickfixes. For example, in a library: dependencies { compile 'androidx.appcompat:appcompat:1.0.0' } would trigger warning: build.gradle:9: Warning: 'compile' is deprecated; replace with either 'api' to maintain current behavior, or 'implementation' to improve build performance by not sharing this dependency transitively. [GradleDeprecatedConfiguration] compile 'androidx.appcompat:appcompat:1.0.0' ~~~~~~~ With proposed fixes: Fix for build.gradle line 9: Replace 'compile' with 'api': @@ -9 +9 - compile 'androidx.appcompat:appcompat:1.0.0' + api 'androidx.appcompat:appcompat:1.0.0' Fix for build.gradle line 9: Replace 'compile' with 'implementation': @@ -9 +9 - compile 'androidx.appcompat:appcompat:1.0.0' + implementation 'androidx.appcompat:appcompat:1.0.0' Test: Added new cases to GradleDetectorTest Bug: 122727153 Change-Id: I7a43372a2be25151b77b176550d08839f4314f6a
This project contains: