Which Java and Groovy versions are supported?

Q: Which Java and Groovy versions does OpenClover support?

OpenClover 5.1 supports language levels 8 - 25 for instrumentation, compilation and reporting, and runs on JDK 8 - 25. Language features introduced up to and including Java 25 (pattern matching for switch, record patterns, module imports, compact source files and flexible constructor bodies) are instrumented.

Groovy 3.x, 4.x and 5.x are supported by Clover-for-Ant, Clover-for-Maven and Clover-for-Grails. Please note that the Eclipse and IDEA plugins do not support Groovy.

See the Supported Platforms page for the full and authoritative matrix, including supported Ant, Maven, IDEA and Eclipse versions.

Note on older answers found on the Internet: you may come across posts stating that Clover supports "JDK 1.8 and 1.9 only" or that "JDK 17 is not supported". This was true for OpenClover 4.4.1, but it is no longer the case. If you are hitting Clover registry file does not exist or No Clover instrumentation done on source files on a modern JDK, upgrade to the latest OpenClover release first.

Clover instruments Java and Groovy source code only. See Does Clover work with PHP? and Can I measure code coverage of C/C++ code? for other languages.