nebula-plugins / gradle-lint-plugin

A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
Apache License 2.0
771 stars 89 forks source link

gradle-lint plugin unusable with lockfiles #355

Open MatanSabag opened 3 years ago

MatanSabag commented 3 years ago

./gradlew autoLintGradle executing gradlew instead of gradle

Task :autoLintGradle FAILED Error from [com.netflix.nebula.lint.rule.GradleLintRule$1] processing source file [null]

FAILURE: Build failed with an exception.

MatanSabag commented 2 years ago

Ping...

ko-at-work commented 12 months ago

Until this is resolved, you can do this

configurations.configureEach {
    if (name != 'lintExcludes') {
        resolutionStrategy.activateDependencyLocking()
    }
}

instead of

dependencyLocking {
    lockAllConfigurations()
}