Skip to content

Commit

Permalink
feat: upgrade to java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 5, 2023
1 parent 6ebf89c commit 7c9fa50
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kafka-sample-spring-boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
spring.kafka.producer.keySerializer=org.apache.kafka.common.serialization.IntegerSerializer
spring.threads.virtual.enabled=true
2 changes: 1 addition & 1 deletion kafka-sample/spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Demo project for Spring Boot</description>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<spotless.version>2.41.1</spotless.version>
<springdoc-openapi.version>2.3.0</springdoc-openapi.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer
spring.threads.virtual.enabled=true

0 comments on commit 7c9fa50

Please sign in to comment.