Update Spring Boot to 2.7.16 and 3.1.4

This commit is contained in:
Corneil du Plessis
2023-09-23 14:59:39 +02:00
parent 2265fa794a
commit 0fda00af72
9 changed files with 24 additions and 34 deletions

View File

@@ -10,17 +10,17 @@ Otherwise, follow the instructions below to build your own `monitorable` Task fr
Follow the [Task development instructions](https://docs.spring.io/spring-cloud-task/docs/2.3.0/reference/#getting-started-developing-first-task) and then:
* Set the parent POM version of Boot to 2.4.3 or latest
* Set the parent POM version of Boot to 2.7.16 or latest
```xml
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.3</version>
<version>2.7.16</version>
<relativePath/>
</parent>
```
* Make sure that `spring-cloud-task-dependencies` version `2.3.0` or newer are imported:
* Make sure that `spring-cloud-task-dependencies` version `2.4.6` or newer are imported:
```xml
<dependencyManagement>
@@ -28,7 +28,7 @@ Follow the [Task development instructions](https://docs.spring.io/spring-cloud-t
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-task-dependencies</artifactId>
<version>2.3.0</version>
<version>2.4.6</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@@ -74,12 +74,7 @@ To enable Prometheus metrics collection add:
<dependency>
<groupId>io.micrometer.prometheus</groupId>
<artifactId>prometheus-rsocket-spring</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>io.micrometer.prometheus</groupId>
<artifactId>prometheus-rsocket-client</artifactId>
<version>1.3.0</version>
<version>1.5.2</version>
</dependency>
```
@@ -97,7 +92,7 @@ To enable Prometheus metrics collection add:
<plugin>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dataflow-apps-metadata-plugin</artifactId>
<version>1.0.2</version>
<version>1.0.7</version>
<configuration>
<storeFilteredMetadata>true</storeFilteredMetadata>
<metadataFilter>

View File

@@ -2,21 +2,10 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
spring-boot-starter-parent:2.1.13.RELEASE
prometheus-rsocket-spring.version:0.9.0
rsocket-transport-netty:1.0.0-RC5
spring-boot-starter-parent:2.3.2.RELEASE
prometheus-rsocket-spring.version:0.9.0
rsocket-transport-netty:1.0.0-RC5
-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.11</version>
<version>2.7.16</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>io.spring.task</groupId>
@@ -27,8 +16,8 @@
<properties>
<java.version>1.8</java.version>
<prometheus-rsocket-spring.version>1.4.0</prometheus-rsocket-spring.version>
<spring-cloud-task-dependencies.version>2.4.5</spring-cloud-task-dependencies.version>
<prometheus-rsocket-spring.version>1.5.2</prometheus-rsocket-spring.version>
<spring-cloud-task-dependencies.version>2.4.6</spring-cloud-task-dependencies.version>
</properties>
<dependencies>
@@ -57,6 +46,7 @@
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
<version>2.2.224</version>
</dependency>
<!-- Enable Prometheus metrics collection (via Prometheus RSocket Proxy) -->