diff --git a/examples/README.md b/examples/README.md index 49c36c7..c25e8d8 100644 --- a/examples/README.md +++ b/examples/README.md @@ -31,6 +31,9 @@ cd /repos/kafka-messaging-e2ee/examples ## start the "springboot-fullmessage-multiple" example ./gradlew clean :springboot-fullmessage-multiple:bootRun +## start the "springboot-fullmessage-single" example +./gradlew clean :springboot-fullmessage-single:bootRun + ## or start the "springboot-fieldlevel-multiple" example ./gradlew clean :springboot-fieldlevel-multiple:bootRun ``` diff --git a/examples/build.gradle b/examples/build.gradle index 0ad2204..0c6b0ca 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -1,6 +1,6 @@ plugins { // use composeUp and composeDown via grade. See https://github.com/avast/gradle-docker-compose-plugin - id 'com.avast.gradle.docker-compose' version '0.17.4' + id 'com.avast.gradle.docker-compose' version '0.17.12' } ext { diff --git a/examples/springboot-fieldlevel-multiple/build.gradle b/examples/springboot-fieldlevel-multiple/build.gradle index 8976354..0a58031 100644 --- a/examples/springboot-fieldlevel-multiple/build.gradle +++ b/examples/springboot-fieldlevel-multiple/build.gradle @@ -1,12 +1,12 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.1.2' - id 'io.spring.dependency-management' version '1.1.0' + id 'org.springframework.boot' version '3.4.2' + id 'io.spring.dependency-management' version '1.1.7' } group = 'de.otto.kafka.messaging.e2ee.examples' version = '0.0.1-SNAPSHOT' -sourceCompatibility = '17' +sourceCompatibility = '21' configurations { compileOnly { diff --git a/examples/springboot-fieldlevel-multiple/src/main/java/de/otto/springboot/example/fieldlevel/multiple/ExampleFieldLevelMultipleSpringBootConfig.java b/examples/springboot-fieldlevel-multiple/src/main/java/de/otto/springboot/example/fieldlevel/multiple/ExampleFieldLevelMultipleSpringBootConfig.java new file mode 100644 index 0000000..a462544 --- /dev/null +++ b/examples/springboot-fieldlevel-multiple/src/main/java/de/otto/springboot/example/fieldlevel/multiple/ExampleFieldLevelMultipleSpringBootConfig.java @@ -0,0 +1,14 @@ +package de.otto.springboot.example.fieldlevel.multiple; + +import java.time.Clock; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration(proxyBeanMethods = false) +public class ExampleFieldLevelMultipleSpringBootConfig { + + @Bean + public Clock clock() { + return Clock.systemDefaultZone(); + } +} diff --git a/examples/springboot-fullmessage-multiple/build.gradle b/examples/springboot-fullmessage-multiple/build.gradle index 89eff98..039bac6 100644 --- a/examples/springboot-fullmessage-multiple/build.gradle +++ b/examples/springboot-fullmessage-multiple/build.gradle @@ -1,12 +1,12 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.1.2' - id 'io.spring.dependency-management' version '1.1.0' + id 'org.springframework.boot' version '3.4.2' + id 'io.spring.dependency-management' version '1.1.7' } group = 'de.otto.kafka.messaging.e2ee.examples' version = '0.0.1-SNAPSHOT' -sourceCompatibility = '17' +sourceCompatibility = '21' configurations { compileOnly { diff --git a/examples/springboot-fullmessage-single/build.gradle b/examples/springboot-fullmessage-single/build.gradle index 89eff98..039bac6 100644 --- a/examples/springboot-fullmessage-single/build.gradle +++ b/examples/springboot-fullmessage-single/build.gradle @@ -1,12 +1,12 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.1.2' - id 'io.spring.dependency-management' version '1.1.0' + id 'org.springframework.boot' version '3.4.2' + id 'io.spring.dependency-management' version '1.1.7' } group = 'de.otto.kafka.messaging.e2ee.examples' version = '0.0.1-SNAPSHOT' -sourceCompatibility = '17' +sourceCompatibility = '21' configurations { compileOnly {