File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 14
14
<description >AspectJ Compiler support for Plexus Compiler component.</description >
15
15
16
16
<properties >
17
- <javaVersion >17 </javaVersion >
17
+ <javaVersion >11 </javaVersion >
18
18
</properties >
19
19
20
20
<dependencies >
Original file line number Diff line number Diff line change 14
14
<description >Eclipse Compiler support for Plexus Compiler component.</description >
15
15
16
16
<properties >
17
- <javaVersion >17 </javaVersion >
17
+ <javaVersion >11 </javaVersion >
18
18
</properties >
19
19
20
20
<dependencies >
Original file line number Diff line number Diff line change 197
197
<artifactId >maven-enforcer-plugin</artifactId >
198
198
<executions >
199
199
<execution >
200
- <id >enforce-java</id >
200
+ <id >enforce-maven-and- java-bytecode </id >
201
201
<goals >
202
202
<goal >enforce</goal >
203
203
</goals >
207
207
<version >[17,)</version >
208
208
<message >[ERROR] OLD JDK [${java.version} ] in use. This projects requires JDK 17 or newer</message >
209
209
</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 >
210
218
</rules >
211
219
</configuration >
212
220
</execution >
You can’t perform that action at this time.
0 commit comments