Skip to content

Commit 11d0ed3

Browse files
authored
chore(ci): add JDK 25 to CI (#313)
* chore(ci): add JDK 25 to CI * chore: Add JVM argument for unsafe memory access * chore: Update JVM argument handling for unsafe memory access based on JDK version * chore: Update Java test matrix for JDK 25 and add unsafe memory access arguments * chore: Remove JDK 25 from Maven image configuration in test matrix * chore: Update documentation to clarify JDK 25+ requirements and JVM arguments * chore: Update README to include JVM argument for unsafe memory access in JDK 25+ * chore: Update README to reflect compatibility with Java 25
1 parent cbbf977 commit 11d0ed3

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.circleci/config.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,28 @@ workflows:
219219
- check-dependencies
220220
- check-licenses
221221
- check-generate-site
222+
# Java tests matrix for JDK under 25
222223
- tests-java:
223224
matrix:
225+
alias: tests-java-jdk-old
224226
parameters:
225227
exe: [ docker-amd64-image, docker-arm64-image ]
226-
maven-image: [ << pipeline.parameters.default-maven-image >>, "cimg/openjdk:17.0", "cimg/openjdk:20.0", "cimg/openjdk:21.0" ]
228+
maven-image: [ << pipeline.parameters.default-maven-image >>, "cimg/openjdk:17.0", "cimg/openjdk:21.0" ]
229+
# Java test matrix for JDK 25+
230+
- tests-java:
231+
matrix:
232+
alias: tests-java-jdk-25+
233+
parameters:
234+
exe: [ docker-amd64-image, docker-arm64-image ]
235+
maven-image: [ "cimg/openjdk:25.0" ]
236+
arg-line: [ "--add-opens=java.base/java.nio=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow" ]
227237
- deploy-snapshot:
228238
requires:
229239
- check-dependencies
230240
- check-licenses
231241
- check-generate-site
232-
- tests-java
242+
- tests-java-jdk-old
243+
- tests-java-jdk-25+
233244
filters:
234245
branches:
235246
only: main

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## 1.8.0 [unreleased]
22

3+
### CI
4+
5+
1. [#313](https://github.com/InfluxCommunity/influxdb3-java/pull/313): Clarify JDK 25+ requirements.
6+
37
## 1.7.0 [2025-11-21]
48

59
### Bug Fixes

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ which allows you to execute SQL queries against InfluxDB IOx.
3333

3434
We offer this [Getting Started: InfluxDB 3.0 Java Client Library](https://www.youtube.com/watch?v=EFnG7rUDvR4) video for learning more about the library.
3535

36-
> :warning: This client requires Java 11 and is compatible up to and including Java 21.
36+
> :warning: This client requires Java 11 and is compatible up to and including Java 25.
3737
3838
## Installation
3939

4040
> :warning: Some JDK internals must be exposed by adding `--add-opens=java.base/java.nio=ALL-UNNAMED` to your JVM arguments.
4141
42+
If you are using JDK 25 or later, you also need to add `--sun-misc-unsafe-memory-access=allow`.
43+
4244
Add the latest version of the client to your project:
4345

4446
### Maven dependency

0 commit comments

Comments
 (0)