Skip to content

Commit 3f2e6ce

Browse files
authored
Merge pull request #47 from EzFramework/fix/java-21
fix: java 21 compat
2 parents da119d7 + e140b99 commit 3f2e6ce

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-java@v5
2222
with:
2323
distribution: 'temurin'
24-
java-version: '25'
24+
java-version: '21'
2525
- name: Run Checkstyle
2626
run: mvn --batch-mode checkstyle:check
2727
- name: Annotate Checkstyle results
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/setup-java@v5
4040
with:
4141
distribution: 'temurin'
42-
java-version: '25'
42+
java-version: '21'
4343
- name: Build with coverage
4444
run: mvn --batch-mode clean verify
4545
- name: Upload coverage to Codecov

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
java-version: [ '25' ]
17+
java-version: [ '21', '25' ]
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v6
@@ -28,14 +28,14 @@ jobs:
2828
- name: Upload JAR artifact
2929
uses: actions/upload-artifact@v7
3030
with:
31-
name: java-query-builder-jar
31+
name: java-query-builder-jar-${{ matrix.java-version }}
3232
path: target/*.jar
3333

3434
feature-tests:
3535
runs-on: ubuntu-latest
3636
strategy:
3737
matrix:
38-
java-version: [ '25' ]
38+
java-version: [ '21', '25' ]
3939
steps:
4040
- name: Checkout code
4141
uses: actions/checkout@v6

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<url>https://github.com/EzFramework/JavaQueryBuilder</url>
1414

1515
<properties>
16-
<maven.compiler.source>25</maven.compiler.source>
17-
<maven.compiler.target>25</maven.compiler.target>
16+
<maven.compiler.source>21</maven.compiler.source>
17+
<maven.compiler.target>21</maven.compiler.target>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
</properties>
2020

@@ -52,8 +52,8 @@
5252
<artifactId>maven-compiler-plugin</artifactId>
5353
<version>3.15.0</version>
5454
<configuration>
55-
<source>25</source>
56-
<target>25</target>
55+
<source>21</source>
56+
<target>21</target>
5757
</configuration>
5858
</plugin>
5959
<plugin>

0 commit comments

Comments
 (0)