From 7c9fa509cf7b9d743818983ee1ab339a81b3829c Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Tue, 5 Dec 2023 03:20:08 +0000 Subject: [PATCH] feat: upgrade to java 21 --- .github/workflows/kafka-sample-spring-boot.yml | 2 +- .../src/main/resources/application.properties | 3 ++- kafka-sample/spring-boot/pom.xml | 2 +- .../spring-boot/src/main/resources/application.properties | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/kafka-sample-spring-boot.yml b/.github/workflows/kafka-sample-spring-boot.yml index c3adf563..c85defc4 100644 --- a/.github/workflows/kafka-sample-spring-boot.yml +++ b/.github/workflows/kafka-sample-spring-boot.yml @@ -25,7 +25,7 @@ jobs: fetch-depth: 0 - uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '21' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} cache: 'maven' diff --git a/kafka-sample/spring-boot-multiple-producers-consumers/src/main/resources/application.properties b/kafka-sample/spring-boot-multiple-producers-consumers/src/main/resources/application.properties index 80ea7014..7df46b75 100644 --- a/kafka-sample/spring-boot-multiple-producers-consumers/src/main/resources/application.properties +++ b/kafka-sample/spring-boot-multiple-producers-consumers/src/main/resources/application.properties @@ -8,4 +8,5 @@ spring.kafka.consumer.group-id=foo spring.kafka.consumer.auto-offset-reset=earliest #Setting Default producer with Integer Serializer -spring.kafka.producer.keySerializer=org.apache.kafka.common.serialization.IntegerSerializer \ No newline at end of file +spring.kafka.producer.keySerializer=org.apache.kafka.common.serialization.IntegerSerializer +spring.threads.virtual.enabled=true \ No newline at end of file diff --git a/kafka-sample/spring-boot/pom.xml b/kafka-sample/spring-boot/pom.xml index d3ecf294..d70b1c50 100644 --- a/kafka-sample/spring-boot/pom.xml +++ b/kafka-sample/spring-boot/pom.xml @@ -15,7 +15,7 @@ Demo project for Spring Boot - 17 + 21 2.41.1 2.3.0 diff --git a/kafka-sample/spring-boot/src/main/resources/application.properties b/kafka-sample/spring-boot/src/main/resources/application.properties index 49908713..321460de 100644 --- a/kafka-sample/spring-boot/src/main/resources/application.properties +++ b/kafka-sample/spring-boot/src/main/resources/application.properties @@ -7,4 +7,5 @@ spring.kafka.consumer.properties.spring.json.trusted.packages=com.example.spring spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.UUIDSerializer -spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer \ No newline at end of file +spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer +spring.threads.virtual.enabled=true \ No newline at end of file