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

One is forced to call ./gradlew publishToMavenLocal in order ./gradlew [auto|lintGradle] to pass #327

Closed geirsandearm closed 3 years ago

geirsandearm commented 3 years ago

When module uses following gradle plugins

apply plugin: "com.github.johnrengelman.shadow"

apply plugin: "maven-publish"

apply plugin: "java-library"

developer needs to call ./gradlew publishToMavenLocal in order to linting to pass. Otherwise when linting it isn't able to load pom for that particular module e.g. `

:lintGradle > Resolve dependencies of :myproject:detachedConfiguration4 > myproject-0.1-fbcb30721d.pom `

Is there anyway possible to skip/exclude this kind of linting?

geirsandearm commented 3 years ago

When I applied apply plugin: "nebula.resolution-rules" problem went away.