You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: upgrade Spring to v6, SpringBoot to v3 (#673)
* feat: upgrade Spring to v6, SpringBoot to v3
* chore: drop support for old JDK, min required JDK is 17
* fix: dependencies to kotlin stdlib
* fix: dependencies
* fix: scala version
* docs: JDK warning
* docs: libraries changes
* test: fix assert to reenable local build without install
* chore: revert previous commit - breaks CI build
* test: fix assert of User-Agent in local builds
---------
Co-authored-by: karel rehor <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
1
## 7.0.0 [unreleased]
2
2
3
+
:warning: This client version discontinues support for JDK 8 and 11. The minimum supported JDK version is now JDK 17.
4
+
3
5
:warning: This client version discontinues support for Akka Streams and introduces support for Pekko Streams instead. Apache Pekko is a fork of [Akka](https://github.com/akka/akka) 2.6.x, created after the Akka project adopted the Business Source License, which is not compatible with open-source usage.
4
6
5
7
### Features
6
8
1.[#661](https://github.com/influxdata/influxdb-client-java/pull/661): Replaced Akka Streams with Pekko Streams in the Scala client.
7
-
9
+
1.[#673](https://github.com/influxdata/influxdb-client-java/pull/673): Upgrade SpringBoot to v3 and Spring to v6
10
+
1.[#673](https://github.com/influxdata/influxdb-client-java/pull/673): Disable support for old JDKs (< 17)
8
11
9
12
### Dependencies
10
13
@@ -16,6 +19,10 @@ Update dependencies:
16
19
-[#667](https://github.com/influxdata/influxdb-client-java/pull/667): `rxjava` to `3.1.8`
17
20
-[#669](https://github.com/influxdata/influxdb-client-java/pull/669): `commons-lang3` to `3.14.0`
18
21
-[#670](https://github.com/influxdata/influxdb-client-java/pull/670): `micrometer-registry-influx` to `1.12.1`
22
+
-[#673](https://github.com/influxdata/influxdb-client-java/pull/673): `spring-boot` to `3.2.2`
23
+
-[#673](https://github.com/influxdata/influxdb-client-java/pull/673): `spring` to `6.1.3`
24
+
-[#673](https://github.com/influxdata/influxdb-client-java/pull/673): `scala-library` to `2.13.11`
25
+
-[#673](https://github.com/influxdata/influxdb-client-java/pull/673): `okhttp` to `4.12.0`
19
26
20
27
#### Maven:
21
28
-[#671](https://github.com/influxdata/influxdb-client-java/pull/671): `maven-javadoc-plugin` to `3.6.3`
Copy file name to clipboardExpand all lines: spring/README.md
+9-11
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,9 @@
10
10
11
11
## Spring Boot Compatibility
12
12
13
-
:warning: The client version `6.4.0` upgrades the `OkHttp` library to version `4.10.0`. The version `3.12.x` is no longer supported - [okhttp#requirements](https://github.com/square/okhttp#requirements).
13
+
:warning: The client version `7.0.0` upgrades the `OkHttp` library to version `4.12.0`. The version `3.x.x` is no longer supported - [okhttp#requirements](https://github.com/square/okhttp#requirements).
14
14
15
-
The `spring-boot` supports the `OkHttp:4.10.0` from the version `3.0.0-M4` - [spring-boot/OkHttp 4.10,0](https://github.com/spring-projects/spring-boot/commit/6cb1a958a5d43a2fffb7e7635e3be9c0ee15f3b1).
16
-
For the older version of `spring-boot` you have to configure Spring Boot's `okhttp3.version` property:
15
+
The `spring-boot` supports the `OkHttp:4.12.0`. For the older version of `spring-boot` you have to configure Spring Boot's `okhttp3.version` property:
17
16
18
17
```xml
19
18
<properties>
@@ -43,7 +42,7 @@ influx:
43
42
connectTimeout: 5s# Connection timeout for OkHttpClient. (Default: 10s)
44
43
```
45
44
46
-
:warning: If you are using a version of Spring Boot prior to 2.7, auto-configuration will not take effect.
45
+
:warning: If you are using a version of **Spring Boot prior to 2.7 with 6.x version of the client**, auto-configuration will not take effect.
47
46
You need to add the `@ComponentScan` annotation to your Spring Boot startup class and include com.influxdb.spring.influx in the basePackages.
48
47
For example:
49
48
```java
@@ -62,7 +61,7 @@ If you want to configure the `InfluxDBClientReactive` client, you need to includ
62
61
63
62
## Actuator for InfluxDB2 micrometer registry
64
63
65
-
To enable export metrics to **InfluxDB 2.x** you need to include `micrometer-core` on your classpath.
64
+
To enable export metrics to **InfluxDB 2.x** you need to include `micrometer-registry-influx` on your classpath.
66
65
(Due to package conflicts, the `spring-boot-actuator` may have relied on an earlier version of the `micrometer-core`. Therefore, it is necessary to specify a higher version here.)
67
66
68
67
The default configuration can be override via properties:
num-threads: 2 # Number of threads to use with the metrics publishing scheduler. (Default: 2)
82
81
batch-size: 10000 # Number of measurements per request to use for this backend. If more measurements are found, then multiple requests will be made. (Default: 10000)
0 commit comments