Skip to content

Commit bc1023f

Browse files
ruhan1claude
andcommitted
Update build tooling to Java 17
The quarkus-maven-plugin 3.6.9 binary was compiled with Java 17 and requires Java 17 to execute, even though Quarkus 3.6.9 applications can still run on Java 11. With Maven 3.9.12 (now on GitHub Actions ubuntu-latest runners), Java prerequisites for plugins are strictly enforced. This change updates the build environment to Java 17 while maintaining Java 11 bytecode compatibility: - GitHub Actions workflows now use Java 17 - Maven toolchains configured for Java 17 - Compiler still targets Java 11 (source=11, target=11) - Runtime Docker image still uses Java 11 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 788dc8f commit bc1023f

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/merge-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
distribution: 'temurin'
4444
architecture: x64
45-
java-version: 11
45+
java-version: 17
4646

4747
- name: maven-settings-xml-action
4848
uses: whelk-io/maven-settings-xml-action@v14

.github/workflows/pr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up JDK
3333
uses: actions/setup-java@v2
3434
with:
35-
java-version: '11'
35+
java-version: '17'
3636
distribution: 'adopt'
3737

3838
- name: maven-settings-xml-action

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
<configuration>
255255
<toolchains>
256256
<jdk>
257-
<version>11</version>
257+
<version>17</version>
258258
<vendor>OpenJDK</vendor>
259259
</jdk>
260260
</toolchains>

toolchains.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,14 @@
3737
<jdkHome>/usr/lib/jvm/java-11-openjdk</jdkHome>
3838
</configuration>
3939
</toolchain>
40+
<toolchain>
41+
<type>jdk</type>
42+
<provides>
43+
<version>17</version>
44+
<vendor>OpenJDK</vendor>
45+
</provides>
46+
<configuration>
47+
<jdkHome>/usr/lib/jvm/java-17-openjdk</jdkHome>
48+
</configuration>
49+
</toolchain>
4050
</toolchains>

0 commit comments

Comments
 (0)