Skip to content

Commit 9566c09

Browse files
committed
updated for latest spring boot 3.2.0 + Java 21
1 parent 44044cf commit 9566c09

File tree

6 files changed

+29
-11
lines changed

6 files changed

+29
-11
lines changed

architectural-pattern/scatter-gather/airline/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:11.0.6-jre-slim
1+
FROM bellsoft/liberica-openjdk-alpine:21
22

33
WORKDIR /usr/app
44

architectural-pattern/scatter-gather/airline/pom.xml

-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
<dependency>
1616
<groupId>com.vinsguru</groupId>
1717
<artifactId>common-dto</artifactId>
18-
<version>0.0.1-SNAPSHOT</version>
1918
</dependency>
2019
<dependency>
2120
<groupId>io.nats</groupId>
2221
<artifactId>jnats</artifactId>
23-
<version>2.15.3</version>
2422
</dependency>
2523
</dependencies>
2624

@@ -30,7 +28,6 @@
3028
<groupId>org.springframework.boot</groupId>
3129
<artifactId>spring-boot-maven-plugin</artifactId>
3230
<configuration>
33-
<fork>true</fork>
3431
<skip>false</skip>
3532
</configuration>
3633
<executions>

architectural-pattern/scatter-gather/common-dto/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<dependency>
1818
<groupId>com.fasterxml.jackson.core</groupId>
1919
<artifactId>jackson-databind</artifactId>
20-
<version>2.12.0</version>
2120
</dependency>
2221
</dependencies>
2322

architectural-pattern/scatter-gather/common-dto/src/main/java/com/vinsguru/util/ObjectUtil.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
public class ObjectUtil {
88

9+
private static final ObjectMapper mapper = new ObjectMapper();
10+
911
public static <T> Optional<T> toObject(byte[] src, Class<T> type){
1012
try{
11-
ObjectMapper mapper = new ObjectMapper();
1213
return Optional.of(mapper.readValue(src, type));
1314
}catch (Exception e){
14-
return Optional.empty();
15+
return Optional.empty();
1516
}
1617
}
1718

1819
public static byte[] toBytes(Object o){
1920
try{
20-
ObjectMapper mapper = new ObjectMapper();
2121
return mapper.writeValueAsBytes(o);
2222
}catch (Exception e){
2323
return new byte[0];

architectural-pattern/scatter-gather/flight-search/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:11.0.6-jre-slim
1+
FROM bellsoft/liberica-openjdk-alpine:21
22

33
WORKDIR /usr/app
44

architectural-pattern/scatter-gather/pom.xml

+24-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<groupId>org.springframework.boot</groupId>
1313
<artifactId>spring-boot-starter-parent</artifactId>
14-
<version>2.7.1</version>
14+
<version>3.2.0</version>
1515
<relativePath/> <!-- lookup parent from repository -->
1616
</parent>
1717
<groupId>com.vinsguru</groupId>
@@ -21,9 +21,31 @@
2121
<description>Demo project for Spring Boot</description>
2222

2323
<properties>
24-
<java.version>11</java.version>
24+
<java.version>21</java.version>
25+
<nats.version>2.17.1</nats.version>
26+
<jackson.version>2.16.0</jackson.version>
2527
</properties>
2628

29+
<dependencyManagement>
30+
<dependencies>
31+
<dependency>
32+
<groupId>com.vinsguru</groupId>
33+
<artifactId>common-dto</artifactId>
34+
<version>${project.version}</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>io.nats</groupId>
38+
<artifactId>jnats</artifactId>
39+
<version>${nats.version}</version>
40+
</dependency>
41+
<dependency>
42+
<groupId>com.fasterxml.jackson.core</groupId>
43+
<artifactId>jackson-databind</artifactId>
44+
<version>${jackson.version}</version>
45+
</dependency>
46+
</dependencies>
47+
</dependencyManagement>
48+
2749
<dependencies>
2850
<dependency>
2951
<groupId>org.projectlombok</groupId>

0 commit comments

Comments
 (0)