Skip to content

Commit fdf0db0

Browse files
committed
Upgrade minimum JDK to 17
1 parent 2a864c5 commit fdf0db0

15 files changed

Lines changed: 42 additions & 44 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v6
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v5
25+
with:
26+
distribution: corretto
27+
java-version: 17
2328
- name: Cache Maven packages
2429
uses: actions/cache@v5
2530
with:

.github/workflows/unit-test-cpp.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ jobs:
8080
- name: Checkout repository
8181
uses: actions/checkout@v6
8282

83+
- name: Set up JDK 17
84+
uses: actions/setup-java@v5
85+
with:
86+
distribution: corretto
87+
java-version: 17
88+
8389
# Setup caching of the artifacts in the .m2 directory, so they don't have to
8490
# all be downloaded again for every build.
8591
- name: Cache Maven packages

.github/workflows/unit-test-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fail-fast: false
4545
max-parallel: 15
4646
matrix:
47-
java: [ 8, 17, 25 ]
47+
java: [ 17, 21, 25 ]
4848
os: [ ubuntu-latest, macos-latest, windows-latest ]
4949
runs-on: ${{ matrix.os }}
5050

.github/workflows/unit-test-python.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959

60+
- name: Set up JDK 17
61+
uses: actions/setup-java@v5
62+
with:
63+
distribution: corretto
64+
java-version: 17
65+
6066
# Setup caching of the artifacts in the .m2 directory, so they don't have to
6167
# all be downloaded again for every build.
6268
- name: Cache Maven packages

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pipeline {
3434

3535
tools {
3636
maven 'maven_3_latest'
37-
jdk 'jdk_11_latest'
37+
jdk 'jdk_17_latest'
3838
}
3939

4040
options {

docs/src/UserGuide/develop/QuickStart/QuickStart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## Dependencies
2424

25-
- JDK >=1.8
25+
- JDK >=17
2626
- Maven >=3.6
2727

2828
## Installation Method

docs/src/zh/UserGuide/develop/QuickStart/QuickStart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
## 依赖
2424

25-
- JDK >=1.8
25+
- JDK >=17
2626
- Maven >=3.6
2727

2828
## 安装

java/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Code generation: FreeMarker templates in `tsfile/src/main/codegen/` generate typ
8181

8282
## Code Style
8383

84-
- **Formatter**: Spotless with Google Java Format 1.28.0 (Spotless requires Java 17+ to run but the project targets Java 8 bytecode)
84+
- **Formatter**: Spotless with Google Java Format 1.28.0 (the project targets Java 17 bytecode)
8585
- **Checkstyle**: Google style variant in root `checkstyle.xml`, 100 char line limit
8686
- **Import order**: `org.apache.tsfile`, `javax`, `java`, static imports
8787

java/examples/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
<groupId>org.apache.maven.plugins</groupId>
4747
<artifactId>maven-compiler-plugin</artifactId>
4848
<configuration>
49-
<source>8</source>
50-
<target>8</target>
49+
<release>17</release>
5150
</configuration>
5251
</plugin>
5352
<plugin>

java/pom.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@
6161
<dependency>
6262
<groupId>org.slf4j</groupId>
6363
<artifactId>slf4j-api</artifactId>
64-
<version>2.0.16</version>
64+
<version>2.0.17</version>
6565
</dependency>
6666
<dependency>
6767
<groupId>org.antlr</groupId>
6868
<artifactId>antlr4-runtime</artifactId>
69-
<!-- This was the last version to support Java 8 -->
70-
<version>4.9.3</version>
69+
<version>4.13.2</version>
7170
</dependency>
7271
<dependency>
7372
<groupId>junit</groupId>
@@ -83,8 +82,7 @@
8382
<dependency>
8483
<groupId>ch.qos.logback</groupId>
8584
<artifactId>logback-classic</artifactId>
86-
<!-- This was the last version to support Java 8 -->
87-
<version>1.3.16</version>
85+
<version>1.5.32</version>
8886
</dependency>
8987
<dependency>
9088
<groupId>commons-cli</groupId>
@@ -94,7 +92,6 @@
9492
<dependency>
9593
<groupId>org.apache.parquet</groupId>
9694
<artifactId>parquet-hadoop</artifactId>
97-
<!-- This was the last version to support Java 8 -->
9895
<version>1.14.4</version>
9996
</dependency>
10097
<dependency>

0 commit comments

Comments
 (0)