Spring Cloud 2021.0.3 is available. Compatible with Spring Boot 2.7.0

转自官方博客

RELEASES  MAY 27, 2022

On behalf of the community, I am pleased to announce the Spring Cloud 2021.0.3 Release Train is available today. The release can be found in Maven Central. You can check out the 2021.0.3 release notes for more information.

Notable Changes in the 2021.0.3 Release Train

This release is primarily for compatibility with Spring Boot 2.7.0 along with Spring Boot 2.6.x.

To see all the issues and pull requests in this release, please see here.

Spring Cloud Sleuth

  • Bug fixes and minor enhancements

Spring Cloud Contract

  • Bug fixes and JsonAssert upgrade

Spring Cloud Gateway

  • Bug fixes and path variable support for PrefixPath filter.

The following modules were updated as part of 2021.0.3:

ModuleVersionIssues
Spring Cloud Stream3.2.4 
Spring Cloud Config3.1.3(issues)
Spring Cloud Build3.1.3(issues)
Spring Cloud Sleuth3.1.3(issues)
Spring Cloud Contract3.1.3(issues)
Spring Cloud Starter Build2021.0.3 
Spring Cloud Gateway3.1.3(issues)
Spring Cloud Consul3.1.1 
Spring Cloud Netflix3.1.3 
Spring Cloud Cloudfoundry3.1.2 
Spring Cloud Vault3.1.1 
Spring Cloud Kubernetes2.1.3(issues)
Spring Cloud Bus3.1.2 
Spring Cloud Zookeeper3.1.2 
Spring Cloud Task2.4.3(issues)
Spring Cloud Cli3.1.1 
Spring Cloud Commons3.1.3 
Spring Cloud Openfeign3.1.3 
Spring Cloud Function3.2.5 
Spring Cloud Circuitbreaker2.1.3 

As always, we welcome feedback on GitHub, on Gitter, on Stack Overflow, or on Twitter.

To get started with Maven with a BOM (dependency management only):

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2021.0.3</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
    ...
</dependencies>

or with Gradle:

plugins {
  id 'org.springframework.boot' version '2.6.8'
  id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  id 'java'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'

repositories {
  mavenCentral()
}

ext {
  set('springCloudVersion', "2021.0.3")
}

dependencies {
  implementation 'org.springframework.cloud:spring-cloud-starter-config'
  implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}