gradle-lint-plugin icon indicating copy to clipboard operation
gradle-lint-plugin copied to clipboard

lintGradle not available at subproject level when plugin applied at root

Open nickcotter opened this issue 7 years ago • 2 comments

I have a multimodule project - I apply the plugin as follows at the root:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.netflix.nebula:gradle-lint-plugin:latest.release'
    }
}

allprojects {
    apply plugin: 'nebula.lint'
    gradleLint.rules += 'unused-dependency'
    gradleLint.alwaysRun = false
}

I can run lintGradle at the root, but at the subproject level only the generateGradleLintReport task is available.

nickcotter avatar Jun 20 '18 11:06 nickcotter

Seems like the reason is the same in #196

dmitriigriazin avatar Apr 11 '19 08:04 dmitriigriazin

Also #242

dbolger avatar Apr 17 '24 20:04 dbolger