Skip to content

Commit 17eab34

Browse files
authored
Merge pull request #52 from EzFramework/fix/java-17
build: target Java 17 and align CI workflows
2 parents ee841fc + b3f6215 commit 17eab34

7 files changed

Lines changed: 14 additions & 19 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v6
20-
- name: Set up JDK 21
20+
- name: Set up JDK 17
2121
uses: actions/setup-java@v5
2222
with:
2323
distribution: 'temurin'
24-
java-version: '21'
24+
java-version: '17'
2525
- name: Run Checkstyle
2626
run: mvn --batch-mode checkstyle:check
2727
- name: Annotate Checkstyle results
@@ -35,11 +35,11 @@ jobs:
3535
steps:
3636
- name: Checkout code
3737
uses: actions/checkout@v6
38-
- name: Set up JDK 21
38+
- name: Set up JDK 17
3939
uses: actions/setup-java@v5
4040
with:
4141
distribution: 'temurin'
42-
java-version: '21'
42+
java-version: '17'
4343
- name: Build with coverage
4444
run: mvn --batch-mode clean verify
4545
- name: Upload coverage to Codecov

.github/workflows/javadoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v6
15-
- name: Set up JDK 25
15+
- name: Set up JDK 17
1616
uses: actions/setup-java@v5
1717
with:
1818
distribution: 'temurin'
19-
java-version: '25'
19+
java-version: '17'
2020
- name: Build Javadoc
2121
run: mvn --batch-mode javadoc:javadoc
2222
- name: Upload Javadoc artifact

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v6
1717

18-
- name: Set up JDK 25
18+
- name: Set up JDK 17
1919
uses: actions/setup-java@v5
2020
with:
2121
distribution: 'temurin'
22-
java-version: '25'
22+
java-version: '17'
2323
server-id: github
2424
server-username: GITHUB_ACTOR
2525
server-password: GITHUB_TOKEN

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 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: [ '21', '25' ]
17+
java-version: [ '17', '21', '25' ]
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v6
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
strategy:
3737
matrix:
38-
java-version: [ '21', '25' ]
38+
java-version: [ '17', '21', '25' ]
3939
steps:
4040
- name: Checkout code
4141
uses: actions/checkout@v6

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Getting Started
44

55
1. Fork and clone the repository
6-
2. Ensure Java 21 and Maven 3.8+ are installed
6+
2. Ensure Java 17 and Maven 3.8+ are installed
77
3. Run `mvn clean verify` — all checks must pass before you start
88

99
## Branching

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A lightweight, fluent Java library for building parameterized SQL queries and fi
1616
- SQL dialect support: Standard, MySQL, SQLite
1717
- **Global and per-query configuration of defaults (e.g., dialect, columns, limit, LIKE wrapping) via `QueryBuilderDefaults`**
1818
- In-memory filtering via `QueryableStorage`
19-
- Zero runtime dependencies, pure Java 21+
19+
- Zero runtime dependencies, pure Java 17+
2020

2121
## Installation
2222

pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55

66
<groupId>com.github.EzFramework</groupId>
77
<artifactId>java-query-builder</artifactId>
8-
<version>1.2.0</version>
8+
<version>1.2.1</version>
99
<packaging>jar</packaging>
1010

1111
<name>JavaQueryBuilder</name>
1212
<description>A fluent Java query builder with SQL generation support.</description>
1313
<url>https://github.com/EzFramework/JavaQueryBuilder</url>
1414

1515
<properties>
16-
<maven.compiler.source>21</maven.compiler.source>
17-
<maven.compiler.target>21</maven.compiler.target>
16+
<maven.compiler.release>17</maven.compiler.release>
1817
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1918
</properties>
2019

@@ -51,10 +50,6 @@
5150
<groupId>org.apache.maven.plugins</groupId>
5251
<artifactId>maven-compiler-plugin</artifactId>
5352
<version>3.15.0</version>
54-
<configuration>
55-
<source>21</source>
56-
<target>21</target>
57-
</configuration>
5853
</plugin>
5954
<plugin>
6055
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)