I have a project where we’ve enabled the task cache, and attempting to configure the findbugs plugin so that is also cached. This is a multi-project build. We’re using findbugs version 3.0.1 and Gradle version 3.5
$ ./gradlew :annotations:findbugsMain Parallel execution is an incubating feature. Build cache is an incubating feature. Using directory (/Users/tjoneslo/.gradle/caches/build-cache-1) as local build cache, push is enabled. :annotations:findbugsMain FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':annotations:findbugsMain'. > No classes configured for FindBugs analysis. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 3.667 secs
If I make the findbugs tasks explicitly dependent on the project assemble task, I can see the
:annotations:compileJava FROM-CACHE process, but it still fails with the same error. If I run it a second time from here, this now passes with
:annotations:findbugsMain FROM-CACHE as I would expect.