Closed boris-petrov closed 3 years ago
That's odd, that method and it's return type hasn't changed in two years. To avoid ambiguity we probably just need to use size()
there instead of the property accessor. We're working on 7.2 now so we'll look at this in the next week or so.
@DanielThomas - I just realized that Gradle 7.2 updated Groovy from 3.0.7 to 3.0.8. Most likely that's the reason for the failure.
@boris-petrov good catch, very likely related, thanks. Nothing stands out on a quick glance, but we can probably add @CompileStatic
to this class to catch whatever is going on at build time.
This should be fixed now in 17.1.1
plugins {
id "java-library"
id "nebula.lint" version "17.1.1"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.guava:guava:19.0'
}
gradleLint {
rules = ['all-dependency']
}
results in
Caching disabled for task ':lintGradle' because:
Build cache is disabled
Task ':lintGradle' is not up-to-date because:
Task has not declared any outputs despite executing actions.
This project contains lint violations. A complete listing of the violations follows.
Because none were serious, the build's overall status was unaffected.
warning unused-dependency this dependency is unused and can be removed
build.gradle:11
implementation 'com.google.guava:guava:19.0'
✖ 1 problem (0 errors, 1 warning)
To apply fixes automatically, run fixGradleLint, review, and commit the changes.
:lintGradle (Thread[Execution worker for ':',5,main]) completed. Took 0.651 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':lintGradle'.
> This build contains 1 lint violation
It indeed is! Thank you!
I updated from Gradle 7.1.1 to Gradle 7.2 and I got the following running
autoLintGradle
:Not sure if you can understand what's the problem... it blows up on this line. If you need a reproduction, please tell me and I'll try to provide one.