Add a Gradle linter to help me write clean build configurations

The linter does not run by default.  To activate it, use "./gradlew
autoLintGradle".
This commit is contained in:
Ben Liblit 2017-12-19 10:17:47 -06:00
parent b94390f2fe
commit dcc7677b34
1 changed files with 17 additions and 0 deletions

View File

@ -44,3 +44,20 @@ subprojects { subproject ->
}
}
}
////////////////////////////////////////////////////////////////////////
buildscript {
repositories.jcenter()
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
}
}
allprojects {
apply plugin: 'nebula.lint'
gradleLint.alwaysRun = false
gradleLint.rules = ['all-dependency']
}