Skip to content

Commit 01daac8

Browse files
authored
Bump to Java 25 (#44)
1 parent d25f480 commit 01daac8

File tree

9 files changed

+16
-43
lines changed

9 files changed

+16
-43
lines changed

.docker/Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
pull_request:
88
branches:
99
- 'main'
10-
schedule:
11-
- cron: '0 5 * * 1'
1210

1311
jobs:
1412
build:
@@ -20,10 +18,10 @@ jobs:
2018
with:
2119
fetch-depth: 0
2220

23-
- name: Set up JDK 21
21+
- name: Set up JDK 25
2422
uses: actions/setup-java@v5
2523
with:
26-
java-version: '21'
24+
java-version: '25'
2725
distribution: 'temurin'
2826
cache: maven
2927

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# under the License.
1717
wrapperVersion=3.3.4
1818
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Available since Apache Kafka 3.9.0, this example showcases the use of the Kafka
1818

1919
## Prerequisites
2020

21-
- Java 21
21+
- Java 25
2222
- Maven
2323
- Docker
2424

dsl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module demonstrates how to use the processing exception handler to manage p
66

77
To compile and run this demo, you’ll need:
88

9-
- Java 21
9+
- Java 25
1010
- Maven
1111
- Docker
1212

dsl/src/test/java/com/michelin/kafka/error/handling/dsl/KafkaStreamsAppTest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ static Stream<String> provideProcessingExceptionHandlerClassName() {
6565
void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingExceptionHandlerClassName) {
6666
instantiateTopologyTestDriver(processingExceptionHandlerClassName);
6767

68-
inputTopic.pipeInput(
69-
"DEL12345",
70-
"""
68+
inputTopic.pipeInput("DEL12345", """
7169
{
7270
"deliveryId": "DEL12345",
7371
"truckId": "TRK56789",
@@ -77,9 +75,7 @@ void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingEx
7775
""");
7876

7977
// "numberOfTires" is negative. This will throw an InvalidDeliveryException
80-
inputTopic.pipeInput(
81-
"DEL73148",
82-
"""
78+
inputTopic.pipeInput("DEL73148", """
8379
{
8480
"deliveryId": "DEL67145",
8581
"truckId": "TRK34567",
@@ -89,9 +85,7 @@ void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingEx
8985
""");
9086

9187
// "numberOfTires" is missing. This will throw a NullPointerException
92-
inputTopic.pipeInput(
93-
"DEL73148",
94-
"""
88+
inputTopic.pipeInput("DEL73148", """
9589
{
9690
"deliveryId": "DEL73148",
9791
"truckId": "TRK48612",

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<junit-jupiter.version>6.0.1</junit-jupiter.version>
2020
<kafka-streams.version>4.1.1</kafka-streams.version>
2121
<logback.version>1.5.21</logback.version>
22-
<maven.compiler.source>21</maven.compiler.source>
23-
<maven.compiler.target>21</maven.compiler.target>
24-
<palantir.version>2.58.0</palantir.version>
22+
<maven.compiler.source>25</maven.compiler.source>
23+
<maven.compiler.target>25</maven.compiler.target>
24+
<palantir.version>2.82.0</palantir.version>
2525
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2626
<slf4j-api.version>2.0.17</slf4j-api.version>
2727
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
@@ -150,7 +150,7 @@
150150
<version>${jib-maven-plugin.version}</version>
151151
<configuration>
152152
<from>
153-
<image>eclipse-temurin:21-jre-alpine</image>
153+
<image>eclipse-temurin:25-jre-alpine</image>
154154
<platforms>
155155
<platform>
156156
<architecture>amd64</architecture>

processor-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module demonstrates how to use the processing exception handler to manage p
66

77
To compile and run this demo, you’ll need:
88

9-
- Java 21
9+
- Java 25
1010
- Maven
1111
- Docker
1212

processor-api/src/test/java/com/michelin/kafka/error/handling/papi/KafkaStreamsAppTest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ static Stream<String> provideProcessingExceptionHandlerClassName() {
6666
void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingExceptionHandlerClassName) {
6767
instantiateTopologyTestDriver(processingExceptionHandlerClassName);
6868

69-
inputTopic.pipeInput(
70-
"DEL12345",
71-
"""
69+
inputTopic.pipeInput("DEL12345", """
7270
{
7371
"deliveryId": "DEL12345",
7472
"truckId": "TRK56789",
@@ -78,9 +76,7 @@ void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingEx
7876
""");
7977

8078
// "numberOfTires" is negative. This will throw an InvalidDeliveryException
81-
inputTopic.pipeInput(
82-
"DEL73148",
83-
"""
79+
inputTopic.pipeInput("DEL73148", """
8480
{
8581
"deliveryId": "DEL67145",
8682
"truckId": "TRK34567",
@@ -90,9 +86,7 @@ void shouldContinueOnInvalidDeliveryAndNullPointerExceptions(String processingEx
9086
""");
9187

9288
// "numberOfTires" is missing. This will throw a NullPointerException
93-
inputTopic.pipeInput(
94-
"DEL73148",
95-
"""
89+
inputTopic.pipeInput("DEL73148", """
9690
{
9791
"deliveryId": "DEL73148",
9892
"truckId": "TRK48612",

0 commit comments

Comments
 (0)