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
769 stars 88 forks source link

Doesn't work with Gradle 6.5 configuration cache #309

Open gregallen opened 4 years ago

gregallen commented 4 years ago

If gradle.properties has org.gradle.unsafe.configuration-cache=on

then

1 configuration cache problems were found Learn more about the Gradle Configuration Cache. Problems grouped by message ▼ ❌ invocation of Task.project📋 at execution time is unsupported. (more info) ▼ task:autoLintGradle📋 of type com.netflix.nebula.lint.plugin.LintGradleTask📋 ▼ exception stack trace 📋 org.gradle.api.InvalidUserCodeException: Invocation of 'Task.project' by task ':autoLintGradle' at execution time is unsupported. at org.gradle.instantexecution.initialization.DefaultInstantExecutionProblemsListener.onTaskExecutionAccessProblem(InstantExecutionProblemsListener.kt:54) at org.gradle.instantexecution.initialization.DefaultInstantExecutionProblemsListener.onProjectAccess(InstantExecutionProblemsListener.kt:45)