Skip to content

Commit

Permalink
Configure Maven compiler level
Browse files Browse the repository at this point in the history
The Maven build didn't configure any JDK target level for compilation.
Neither for Java code, nor for Xtext generated code. The new properties
configure the Java compiler (maven.compiler.release) and the Xtext
generator (if takes its default from the maven-compiler-plugin,
therefore we set source/target of the compiler, even though that looks
superfluous after the release property).

Fixes #1114.

Signed-off-by: Michael Keppler <[email protected]>
  • Loading branch information
Bananeweizen committed Jan 2, 2025
1 parent c213da5 commit 799f7f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<!-- Define a few properties used throughout all build profiles. -->
<properties>
<targetJdk>11</targetJdk>
<maven.compiler.release>${targetJdk}</maven.compiler.release>
<maven.compiler.source>${targetJdk}</maven.compiler.source>
<maven.compiler.target>${targetJdk}</maven.compiler.target>
<tycho-version>2.7.3</tycho-version>
<xtext-version>2.28.0</xtext-version>
<elk-version>${project.version}</elk-version>
Expand Down Expand Up @@ -309,6 +312,7 @@
<version>${xtext-version}</version>
<configuration>
<outputDirectory>${basedir}/xtend-gen</outputDirectory>
<javaSourceVersion>${maven.compiler.release}</javaSourceVersion>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit 799f7f7

Please sign in to comment.