File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1414 <description >AspectJ Compiler support for Plexus Compiler component.</description >
1515
1616 <properties >
17- <javaVersion >17 </javaVersion >
17+ <javaVersion >11 </javaVersion >
1818 </properties >
1919
2020 <dependencies >
Original file line number Diff line number Diff line change 1414 <description >Eclipse Compiler support for Plexus Compiler component.</description >
1515
1616 <properties >
17- <javaVersion >17 </javaVersion >
17+ <javaVersion >11 </javaVersion >
1818 </properties >
1919
2020 <dependencies >
Original file line number Diff line number Diff line change 197197 <artifactId >maven-enforcer-plugin</artifactId >
198198 <executions >
199199 <execution >
200- <id >enforce-java</id >
200+ <id >enforce-maven-and- java-bytecode </id >
201201 <goals >
202202 <goal >enforce</goal >
203203 </goals >
207207 <version >[17,)</version >
208208 <message >[ERROR] OLD JDK [${java.version} ] in use. This projects requires JDK 17 or newer</message >
209209 </requireJavaVersion >
210+ <enforceBytecodeVersion >
211+ <maxJdkVersion >${javaVersion} </maxJdkVersion >
212+ <excludes >
213+ <!-- Java 17 is required for Eclipse Compiler and AspectJ -->
214+ <exclude >org.eclipse.jdt:ecj</exclude >
215+ <exclude >org.aspectj:aspectjtools</exclude >
216+ </excludes >
217+ </enforceBytecodeVersion >
210218 </rules >
211219 </configuration >
212220 </execution >
You can’t perform that action at this time.
0 commit comments