Skip to content

Commit

Permalink
Use --release 8 during compilation
Browse files Browse the repository at this point in the history
Motivation:

We should use --release 8 during compilation to ensure we always end up
with the correct java version that is required.

Modifications:

- Upgrade compiler plugin so the release flag is only used when
compiling with java9+
- Specify release flag

Result:

Always end up with the correct bytecode
  • Loading branch information
normanmaurer committed Jun 24, 2024
1 parent 727e589 commit 48b427f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.13.0</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<fork>true</fork>
<source>1.8</source>
<target>1.8</target>
<release>8</release>
<debug>true</debug>
<optimize>true</optimize>
<showDeprecation>true</showDeprecation>
Expand Down

0 comments on commit 48b427f

Please sign in to comment.