[BUILD-1013] Allow different Java versions for test compiler Created: 15/Feb/23  Updated: 15/Feb/23  Resolved: 15/Feb/23

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: None
Fix Version/s: POMs 54

Type: Improvement Priority: Neutral
Reporter: Michael Duerig Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Team: Foundation
Work Started:

 Description   

When using JDK <= 8 it was possible to configure a different Java version for the test compiler by setting the javaVersionForTests property. Somehow this functionality is not available for JDK > 8 (or got lost along the way).

We should restore this by adding

 <configuration>
     <testRelease>${javaVersionForTests}</testRelease>
 </configuration> 

to the maven-compiler-plugin of the compiler-jdk9 profile.


Generated at Sun Feb 11 23:47:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.