We have a new project using Java 14. Unfortunately the SpotBugs task is failing with java.lang.UnsupportedOperationException: Records requires ASM8
. We’re using the latest SpotBugs plugin (id "com.github.spotbugs" version "4.3.0"
) which uses SpotBugs 4.0.2; according to the ./gradlew dependencies
graph, it’s dependent on ASM 8.0.1 which claims to support Java 14 (https://asm.ow2.io/versions.html).
I trimmed down the build script so that ./gradlew dependencies
says the only references to ASM are in SpotBugs.
It seems like an older version of ASM is being pulled in but I don’t see where/how? How do I figure out where the conflict/trouble is and what’s the right way to get SpotBugs to use ASM 8?