openclover/clover

Drop support for Java 1.7

Closed this issue · 1 comments

In preparation for Java 21 support, support for Java 1.7 will be dropped. One reason is that Java 21 no longer allows to compile code with 1.7 source/target. Another reason is that popularity of JDK 1.7 is minimal.

It will be allowed to select the 1.7 source level in OpenClover configuration, however this value will be treated as 1.8 (similarly as it was done when Java 1.6 was dropped - issue #101).

Entire OpenClover will be compiled with 1.8 target, so JDK/JRE 8 or newer will be required to run the instrumented code with OpenClover.

Tasks:

[x] bump source/target levels to 1.8 (clover & clover-maven-plugin & other repositories)
[x] adjust java-level based test cases to use 1.8 instead of 1.7 language level
[x] apply language level migration code suggestions (e.g. using lambdas)
[x] update developer guides on the website (java 8+ required)