In parent project, Add the following code in build.gradle or init.gradle
Then run the following command:
buildscript {
repositories { maven { url("https://plugins.gradle.org/m2/") } }
dependencies {
classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
}
}
plugins {
id 'java'
id 'groovy'
id 'maven'
id 'jacoco'
id 'application'
id 'nebula.lint' version '7.4.0'
}
allprojects {
apply plugin: 'nebula.lint'
gradleLint.rules = ['unused-dependency']
}
Then run the following command:
gradle lintGradle
gradle fixGradleLint
gradle compileJava fixGradleLint
No comments:
Post a Comment