-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
305 lines (269 loc) · 10.4 KB
/
pom.xml
File metadata and controls
305 lines (269 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.0.3</version>
<relativePath/>
</parent>
<groupId>com.matcodem</groupId>
<artifactId>fincore</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>FinCore Banking Platform - multi-microservice parent POM</description>
<modules>
<module>account-service</module>
<module>payment-service</module>
<module>fraud-detection-service</module>
<module>fx-service</module>
<module>api-gateway</module>
<module>notification-service</module>
</modules>
<properties>
<java.version>25</java.version>
<maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
─── MIGRATION NOTES: Spring Boot 3.x -> 4.x ──────────────────────────
Boot 4 / Spring Framework 7 breaking changes relevant to FinCore:
1. JAKARTA EE 11
No code changes needed - we already migrated javax -> jakarta in Boot 3.x.
New baseline: Servlet 6.1, JPA 3.2, Bean Validation 3.1.
2. JACKSON 3
Package relocated: com.fasterxml.jackson -> tools.jackson
Default ObjectMapper replaced by JsonMapper (immutable).
SORT_PROPERTIES_ALPHABETICALLY=true by default - may affect JSON test assertions.
MapperFeature.DEFAULT_VIEW_INCLUSION=false by default.
If a service uses Jackson 2 explicitly, add jackson-databind-2 compat dep.
Boot 4 ships Jackson 3 but Jackson 2 can coexist as deprecated fallback.
3. TESTCONTAINERS 2.0
Module artifact rename: org.testcontainers:postgresql -> org.testcontainers:testcontainers-postgresql
Class package rename: org.testcontainers.containers.PostgreSQLContainer
-> org.testcontainers.postgresql.PostgreSQLContainer
Same pattern for kafka, junit-jupiter, redis.
Boot 4 manages Testcontainers 2.x via its BOM - versions below are 2.x.
4. RESILIENCE4J
resilience4j-spring-boot3 artifact renamed to resilience4j-spring-boot.
Version 2.x is compatible with Boot 4. No API breaking changes.
Built-in retry in Spring Framework 7 (@Retryable) is an alternative
for simple use cases, but Resilience4j is retained for circuit breaker + bulkhead.
5. VIRTUAL THREADS (Java 21+, enhanced in Java 25)
Enable with: spring.threads.virtual.enabled=true in application.yml
Eliminates need for large Tomcat thread pools - set threads.max to a lower
value (e.g. 50 -> 10 platform threads, virtual threads handle the rest).
HikariCP: set maximumPoolSize conservatively - virtual threads don't help
with DB connection limits; 10-20 is usually sufficient.
6. SPRING CLOUD (api-gateway)
Spring Cloud 2025.0.x is required for Boot 4 compatibility.
spring-cloud.version updated accordingly in api-gateway/pom.xml.
-->
<!-- Avro + Confluent Schema Registry -->
<avro.version>1.12.0</avro.version>
<confluent.version>8.1.1</confluent.version>
<!-- Testing -->
<!--
Testcontainers 2.0 ships with Spring Boot 4's BOM.
The version here is explicit to make it visible - Boot 4 manages it.
Artifact names changed: org.testcontainers:testcontainers-postgresql (note prefix).
-->
<testcontainers.version>2.0.3</testcontainers.version>
<wiremock.version>3.13.0</wiremock.version>
<!-- Resilience -->
<resilience4j.version>2.3.0</resilience4j.version>
<!-- Mapping -->
<mapstruct.version>1.6.3</mapstruct.version>
<!-- Locking -->
<redisson.version>3.43.0</redisson.version>
<!-- Notification providers -->
<firebase-admin.version>9.4.2</firebase-admin.version>
<twilio.version>10.6.4</twilio.version>
</properties>
<repositories>
<repository>
<id>central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</pluginRepository>
<pluginRepository>
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</pluginRepository>
</pluginRepositories>
<dependencyManagement>
<dependencies>
<!-- ── Avro + Schema Registry ──────────────────────────────────── -->
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>${avro.version}</version>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-avro-serializer</artifactId>
<version>${confluent.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-client</artifactId>
<version>${confluent.version}</version>
</dependency>
<!-- ── Resilience4j ────────────────────────────────────────────── -->
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-spring-boot3</artifactId>
<version>${resilience4j.version}</version>
</dependency>
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-reactor</artifactId>
<version>${resilience4j.version}</version>
</dependency>
<!-- ── Redisson ────────────────────────────────────────────────── -->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>${redisson.version}</version>
</dependency>
<!-- ── MapStruct ───────────────────────────────────────────────── -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</dependency>
<!-- ── Notification providers ─────────────────────────────────── -->
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>${firebase-admin.version}</version>
</dependency>
<dependency>
<groupId>com.twilio.sdk</groupId>
<artifactId>twilio</artifactId>
<version>${twilio.version}</version>
</dependency>
<!-- ── Testcontainers BOM ──────────────────────────────────────── -->
<!--
Testcontainers 2.0 breaking changes:
- Artifact prefix added: postgresql -> testcontainers-postgresql
- Class relocation: org.testcontainers.containers.PostgreSQLContainer
-> org.testcontainers.postgresql.PostgreSQLContainer
The BOM covers all renamed modules automatically once imported here.
Child poms must update <artifactId> to use the new prefixed names.
-->
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-bom</artifactId>
<version>${testcontainers.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- ── WireMock ────────────────────────────────────────────────── -->
<dependency>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
<version>${wiremock.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>${avro.version}</version>
<configuration>
<stringType>String</stringType>
<enableDecimalLogicalType>true</enableDecimalLogicalType>
<fieldVisibility>PRIVATE</fieldVisibility>
<createSetters>false</createSetters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<parameters>true</parameters>
<compilerArgs>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludedGroups>integration</excludedGroups>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<groups>integration</groups>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>