Skip to content

Commit

Permalink
Downgrade bytecode to 8 for plexus eclipse and aspectj modules
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed Dec 25, 2024
1 parent 7cc5d40 commit 53cb262
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plexus-compilers/plexus-compiler-aspectj/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<description>AspectJ Compiler support for Plexus Compiler component.</description>

<properties>
<javaVersion>17</javaVersion>
<javaVersion>8</javaVersion>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plexus-compilers/plexus-compiler-eclipse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<description>Eclipse Compiler support for Plexus Compiler component.</description>

<properties>
<javaVersion>17</javaVersion>
<javaVersion>8</javaVersion>
</properties>

<dependencies>
Expand Down
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<id>enforce-maven-and-java-bytecode</id>
<goals>
<goal>enforce</goal>
</goals>
Expand All @@ -207,6 +207,14 @@
<version>[17,)</version>
<message>[ERROR] OLD JDK [${java.version}] in use. This projects requires JDK 17 or newer</message>
</requireJavaVersion>
<enforceBytecodeVersion>
<maxJdkVersion>${javaVersion}</maxJdkVersion>
<excludes>
<!-- Java 17 is required for Eclipse Compiler and AspectJ -->
<exclude>org.eclipse.jdt:ecj</exclude>
<exclude>org.aspectj:aspectjtools</exclude>
</excludes>
</enforceBytecodeVersion>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit 53cb262

Please sign in to comment.