Skip to content

Commit

Permalink
Bump org.springframework.cloud:spring-cloud-dependencies from 2023.0.…
Browse files Browse the repository at this point in the history
…2 to 2023.0.3 in the dependencies group (#58)

* Bump org.springframework.cloud:spring-cloud-dependencies

Bumps the dependencies group with 1 update: [org.springframework.cloud:spring-cloud-dependencies](https://github.com/spring-cloud/spring-cloud-release).


Updates `org.springframework.cloud:spring-cloud-dependencies` from 2023.0.2 to 2023.0.3
- [Release notes](https://github.com/spring-cloud/spring-cloud-release/releases)
- [Commits](spring-cloud/spring-cloud-release@v2023.0.2...v2023.0.3)

---
updated-dependencies:
- dependency-name: org.springframework.cloud:spring-cloud-dependencies
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update README.md

* Workaround

* Fix format

* Fix ktlint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roger Viñas Alcon <[email protected]>
Co-authored-by: Roger Viñas <[email protected]>
  • Loading branch information
3 people authored Jul 17, 2024
1 parent 9ccd43f commit 7770a7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![Java](https://img.shields.io/badge/Java-21-blue?labelColor=black)
![Kotlin](https://img.shields.io/badge/Kotlin-2.0.0-blue?labelColor=black)
![SpringBoot](https://img.shields.io/badge/SpringBoot-3.3.1-blue?labelColor=black)
![SpringCloud](https://img.shields.io/badge/SpringCloud-2023.0.2-blue?labelColor=black)
![SpringCloud](https://img.shields.io/badge/SpringCloud-2023.0.3-blue?labelColor=black)

# Spring Cloud Stream & Kafka binder step by step

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
mavenCentral()
}

val springCloudVersion = "2023.0.2"
val springCloudVersion = "2023.0.3"
val testContainersVersion = "1.19.8"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package com.rogervinas.stream.functional

import com.fasterxml.jackson.databind.ObjectMapper
import com.rogervinas.stream.domain.MyEvent
import com.rogervinas.stream.domain.MyEventConsumer
import com.rogervinas.stream.shared.MyEventPayload
import org.springframework.cloud.function.json.JacksonMapper
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Primary
import org.springframework.messaging.Message
import reactor.core.publisher.Flux

Expand All @@ -27,4 +30,9 @@ class MyConfiguration {

@Bean("my-producer")
fun myStreamEventProducerFunction(producer: MyStreamEventProducer): () -> Flux<Message<MyEventPayload>> = producer

// Workaround for https://github.com/spring-cloud/spring-cloud-function/issues/1158
// Introduced in spring-cloud-function 4.1.3 via spring-cloud-dependencies 2023.0.3
@Bean @Primary
fun jacksonMapper(objectMapper: ObjectMapper) = JacksonMapper(objectMapper)
}

0 comments on commit 7770a7f

Please sign in to comment.