openclover / clover

This repository contains source code of OpenClover Core as well as its integrations: Clover-for-Ant, Clover-for-Eclipse and Clover-for-IDEA plugins. Sources are licensed under Apache 2.0 license.
Other
61 stars 16 forks source link

Drop support for Java 1.7 #234

Closed marek-parfianowicz closed 8 months ago

marek-parfianowicz commented 8 months ago

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)

marek-parfianowicz commented 8 months ago

PR #235

PR https://github.com/openclover/clover-maven-plugin/pull/47