【发布时间】:2023-04-04 10:37:01
【问题描述】:
我正在使用NewerVersionAvailable lint 检查来确定较新的依赖项版本。但看起来这个检查只对implementation 依赖有用。我认为我们不需要很快更新junit。如何禁用此检查单独的依赖类型?将//noinspection 添加到每个testImplementation 依赖项是很无聊的。给出的例子:
dependencies {
// should warn
implementation 'com.android.support:support-annotations:25.0.0'
// shouldn't warn
testImplementation 'junit:junit:4.12'
}
【问题讨论】:
-
如何添加检查“NewerVersionAvailable”。请贴代码
-
@SagarTrehan。更新。谢谢
标签: android gradle lint android-lint