Spring Cloud 2022.0.2 Is Available

Releases | Spencer Gibb | March 30, 2023 | ...

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

Notable Changes in the 2022.0.2 Release Train

See all issues and pull requests included in this release here.

Spring Cloud Kubernetes

  • Added support for external name services using the Fabric8 DiscoveryClient (#1243)
  • Add Pod metadata and annotations to ServiceInstance (#1254)

Spring Cloud Contract

  • Allow sendMessage to handle body from file (.1867)
  • Relaxed SSL validation with RestTemplate interceptors (#1869)

Spring Cloud Commons

  • Allow emitting healthcheck instances in batches (#1122)

Spring Cloud OpenFeign

  • Register native reflection hints for user-provided parameters and return types (#849)
  • Support setting FeignClient URL in runtime for native images (#807)
  • Allow setting protocols for underlying OKHttp client (#825)
  • Add the possibility to use factory beans for Fallback (#822)

Spring Cloud Function

Bug Fixes and enhancements

Spring Cloud Stream

Add support for DLQ in batch mode Bug Fixes and enhancements

Spring Cloud Consul

  • Fixed an issue where CONSUL_TOKEN wasn't read when using spring.config.import=consul: (738)
  • ACL Token is now passed to agentCheckPass (770)

Spring Cloud Gateway

  • The global cache can now be disabled when using Local Response Cache (2895)

The following modules were updated as part of 2022.0.2:

Module Version Issues
Spring Cloud Vault 4.0.1 (issues)
Spring Cloud Circuitbreaker 3.0.1  
Spring Cloud Kubernetes 3.0.2 (issues)
Spring Cloud Task 3.0.2 (issues)
Spring Cloud Function 4.0.2 (issues)
Spring Cloud Commons 4.0.2 (issues)
Spring Cloud Openfeign 4.0.2 (issues)
Spring Cloud Stream 4.0.2  
Spring Cloud Consul 4.0.2 (issues)
Spring Cloud Contract 4.0.2 (issues)
Spring Cloud Gateway 4.0.4 (issues)
Spring Cloud Config 4.0.2 (issues)
Spring Cloud Netflix 4.0.1 (issues)
Spring Cloud Build 4.0.2  

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>2022.0.2</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 'java'
  id 'org.springframework.boot' version '3.0.5'
  id 'io.spring.dependency-management' version '1.1.0'
}

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

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

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

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all