Skip to content

Commit

Permalink
chore(examples): update examples to java 21 and spring boot 3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekaplick5678 committed Feb 28, 2025
1 parent 4bc7a9d commit 9a18941
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/springboot-fieldlevel-multiple/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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();
}
}
6 changes: 3 additions & 3 deletions examples/springboot-fullmessage-multiple/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions examples/springboot-fullmessage-single/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 9a18941

Please sign in to comment.