See https://errorprone.info/
It allows to capture errors like mising switch case branches,
missing override, non-static inner class, etc
The verification can be run locally via ./gradlew -PenableErrorprone classes
Note: Java 11+ is required
This commit configures local build cache, and it delegates
Gradle execution to burrunan/gradle-cache-action.
It unlocks fine-grained remote build cache with GitHub Actions backend
(=faster builds), and it adds error markers
(e.g. compilation errors right in the commit diffs)
See https://github.com/burrunan/gradle-cache-action#gradle-cache-action