Skip to content

Commit 3db2d57

Browse files
committed
Centralize Maven dependency version management
- Add missing version properties to parent POM - Convert hardcoded dependency versions to properties in parent dependencyManagement - Remove hardcoded versions from child modules - Add missing dependencies to parent dependencyManagement - Ensure all shared dependencies inherit versions from parent Signed-off-by: Artur Ciocanu <[email protected]>
1 parent a7d426a commit 3db2d57

File tree

9 files changed

+85
-28
lines changed

9 files changed

+85
-28
lines changed

examples/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<dependency>
3131
<groupId>commons-cli</groupId>
3232
<artifactId>commons-cli</artifactId>
33-
<version>1.9.0</version>
3433
</dependency>
3534
<dependency>
3635
<groupId>io.grpc</groupId>
@@ -66,7 +65,6 @@
6665
<dependency>
6766
<groupId>com.jayway.jsonpath</groupId>
6867
<artifactId>json-path</artifactId>
69-
<version>2.9.0</version>
7068
</dependency>
7169
<dependency>
7270
<groupId>io.opentelemetry</groupId>
@@ -111,7 +109,6 @@
111109
<dependency>
112110
<groupId>org.junit.platform</groupId>
113111
<artifactId>junit-platform-console-standalone</artifactId>
114-
<version>1.7.0</version>
115112
<scope>compile</scope>
116113
</dependency>
117114
<dependency>
@@ -137,12 +134,11 @@
137134
<dependency>
138135
<groupId>com.evanlennick</groupId>
139136
<artifactId>retry4j</artifactId>
140-
<version>0.15.0</version>
141137
</dependency>
142138
<dependency>
143139
<groupId>javax.annotation</groupId>
144140
<artifactId>javax.annotation-api</artifactId>
145-
<version>1.3.2</version>
141+
<version>${javax.annotation.version}</version>
146142
</dependency>
147143
<dependency>
148144
<groupId>com.google.protobuf</groupId>

pom.xml

Lines changed: 83 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,26 @@
6262
<commons-lang.version>3.18.0</commons-lang.version>
6363
<commons-cli.version>1.9.0</commons-cli.version>
6464
<commons-io.version>2.14.0</commons-io.version>
65+
<commons-validator.version>1.7</commons-validator.version>
6566
<zipkin.version>3.4.0</zipkin.version>
6667
<microcks.version>0.3.1</microcks.version>
68+
<json-path.version>2.9.0</json-path.version>
69+
<retry4j.version>0.15.0</retry4j.version>
70+
<system-rules.version>1.19.0</system-rules.version>
71+
<system-stubs.version>2.1.1</system-stubs.version>
72+
<mockito-inline.version>4.2.0</mockito-inline.version>
73+
<junit-vintage-engine.version>5.7.0</junit-vintage-engine.version>
74+
<junit-platform-console.version>1.7.0</junit-platform-console.version>
75+
<reactor.version>3.5.12</reactor.version>
76+
<durabletask-client.version>1.5.10</durabletask-client.version>
77+
<testcontainers-redis.version>2.2.2</testcontainers-redis.version>
78+
<slf4j.version>2.0.9</slf4j.version>
79+
<mockito.version>3.11.2</mockito.version>
80+
<reactor-test.version>3.5.12</reactor-test.version>
81+
<opentelemetry-bom.version>2.1.0</opentelemetry-bom.version>
82+
<microcks-testcontainers.version>5.5.1</microcks-testcontainers.version>
83+
<kotlin.version>2.1.0</kotlin.version>
84+
<rest-assured.version>5.5.1</rest-assured.version>
6785
</properties>
6886

6987
<distributionManagement>
@@ -87,7 +105,7 @@
87105
<dependency>
88106
<groupId>org.slf4j</groupId>
89107
<artifactId>slf4j-api</artifactId>
90-
<version>2.0.9</version>
108+
<version>${slf4j.version}</version>
91109
</dependency>
92110
<dependency>
93111
<groupId>io.grpc</groupId>
@@ -111,12 +129,12 @@
111129
<dependency>
112130
<groupId>org.mockito</groupId>
113131
<artifactId>mockito-core</artifactId>
114-
<version>3.11.2</version>
132+
<version>${mockito.version}</version>
115133
</dependency>
116134
<dependency>
117135
<groupId>io.projectreactor</groupId>
118136
<artifactId>reactor-test</artifactId>
119-
<version>3.5.12</version>
137+
<version>${reactor-test.version}</version>
120138
<scope>test</scope>
121139
</dependency>
122140
<dependency>
@@ -134,7 +152,7 @@
134152
<dependency>
135153
<groupId>org.jetbrains.kotlin</groupId>
136154
<artifactId>kotlin-stdlib</artifactId>
137-
<version>2.1.0</version>
155+
<version>${kotlin.version}</version>
138156
</dependency>
139157
<dependency>
140158
<groupId>org.yaml</groupId>
@@ -201,7 +219,7 @@
201219
<dependency>
202220
<groupId>io.rest-assured</groupId>
203221
<artifactId>rest-assured</artifactId>
204-
<version>5.5.1</version>
222+
<version>${rest-assured.version}</version>
205223
</dependency>
206224
<dependency>
207225
<groupId>io.dapr.spring</groupId>
@@ -371,6 +389,66 @@
371389
<artifactId>wiremock-standalone</artifactId>
372390
<version>${wiremock.version}</version>
373391
</dependency>
392+
<dependency>
393+
<groupId>commons-validator</groupId>
394+
<artifactId>commons-validator</artifactId>
395+
<version>${commons-validator.version}</version>
396+
</dependency>
397+
<dependency>
398+
<groupId>com.jayway.jsonpath</groupId>
399+
<artifactId>json-path</artifactId>
400+
<version>${json-path.version}</version>
401+
</dependency>
402+
<dependency>
403+
<groupId>com.evanlennick</groupId>
404+
<artifactId>retry4j</artifactId>
405+
<version>${retry4j.version}</version>
406+
</dependency>
407+
<dependency>
408+
<groupId>com.github.stefanbirkner</groupId>
409+
<artifactId>system-rules</artifactId>
410+
<version>${system-rules.version}</version>
411+
</dependency>
412+
<dependency>
413+
<groupId>uk.org.webcompere</groupId>
414+
<artifactId>system-stubs-jupiter</artifactId>
415+
<version>${system-stubs.version}</version>
416+
</dependency>
417+
<dependency>
418+
<groupId>org.mockito</groupId>
419+
<artifactId>mockito-inline</artifactId>
420+
<version>${mockito-inline.version}</version>
421+
</dependency>
422+
<dependency>
423+
<groupId>org.junit.vintage</groupId>
424+
<artifactId>junit-vintage-engine</artifactId>
425+
<version>${junit-vintage-engine.version}</version>
426+
</dependency>
427+
<dependency>
428+
<groupId>org.junit.platform</groupId>
429+
<artifactId>junit-platform-console-standalone</artifactId>
430+
<version>${junit-platform-console.version}</version>
431+
</dependency>
432+
<dependency>
433+
<groupId>com.fasterxml.jackson.core</groupId>
434+
<artifactId>jackson-databind</artifactId>
435+
<version>${jackson.version}</version>
436+
</dependency>
437+
<dependency>
438+
<groupId>io.projectreactor</groupId>
439+
<artifactId>reactor-core</artifactId>
440+
<version>${reactor.version}</version>
441+
</dependency>
442+
<dependency>
443+
<groupId>io.dapr</groupId>
444+
<artifactId>durabletask-client</artifactId>
445+
<version>${durabletask-client.version}</version>
446+
</dependency>
447+
<dependency>
448+
<groupId>com.redis</groupId>
449+
<artifactId>testcontainers-redis</artifactId>
450+
<version>${testcontainers-redis.version}</version>
451+
</dependency>
374452
</dependencies>
375453
</dependencyManagement>
376454

sdk-actors/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<dependency>
4040
<groupId>commons-cli</groupId>
4141
<artifactId>commons-cli</artifactId>
42-
<version>1.9.0</version>
4342
<scope>test</scope>
4443
</dependency>
4544
<dependency>
@@ -57,7 +56,6 @@
5756
<dependency>
5857
<groupId>commons-validator</groupId>
5958
<artifactId>commons-validator</artifactId>
60-
<version>1.7</version>
6159
<scope>test</scope>
6260
</dependency>
6361
</dependencies>

sdk-autogen/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@
2121
<protobuf.output.directory>${project.build.directory}/generated-sources</protobuf.output.directory>
2222
<protobuf.input.directory>${project.build.directory}/proto</protobuf.input.directory>
2323
<maven.deploy.skip>false</maven.deploy.skip>
24-
<grpc.version>1.69.0</grpc.version>
25-
<protobuf.version>3.25.5</protobuf.version>
2624
</properties>
2725

2826
<dependencies>
2927
<dependency>
3028
<groupId>javax.annotation</groupId>
3129
<artifactId>javax.annotation-api</artifactId>
32-
<version>1.3.2</version>
3330
<scope>provided</scope>
3431
</dependency>
3532
<dependency>

sdk-workflows/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<dependency>
3131
<groupId>org.mockito</groupId>
3232
<artifactId>mockito-inline</artifactId>
33-
<version>4.2.0</version>
3433
<scope>test</scope>
3534
</dependency>
3635
<dependency>
@@ -41,13 +40,11 @@
4140
<dependency>
4241
<groupId>org.junit.vintage</groupId>
4342
<artifactId>junit-vintage-engine</artifactId>
44-
<version>5.7.0</version>
4543
<scope>test</scope>
4644
</dependency>
4745
<dependency>
4846
<groupId>io.dapr</groupId>
4947
<artifactId>durabletask-client</artifactId>
50-
<version>1.5.10</version>
5148
</dependency>
5249
<!--
5350
manually declare durabletask-client's jackson dependencies

sdk/pom.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@
3737
<dependency>
3838
<groupId>com.fasterxml.jackson.core</groupId>
3939
<artifactId>jackson-databind</artifactId>
40-
<version>2.15.1</version>
4140
</dependency>
4241
<dependency>
4342
<groupId>io.projectreactor</groupId>
4443
<artifactId>reactor-core</artifactId>
45-
<version>3.5.0</version>
4644
</dependency>
4745
<dependency>
4846
<groupId>org.mockito</groupId>
@@ -52,19 +50,17 @@
5250
<dependency>
5351
<groupId>com.fasterxml.jackson.dataformat</groupId>
5452
<artifactId>jackson-dataformat-xml</artifactId>
55-
<version>2.15.1</version>
53+
<version>${jackson.version}</version>
5654
<scope>test</scope>
5755
</dependency>
5856
<dependency>
5957
<groupId>commons-cli</groupId>
6058
<artifactId>commons-cli</artifactId>
61-
<version>1.9.0</version>
6259
<scope>test</scope>
6360
</dependency>
6461
<dependency>
6562
<groupId>com.github.stefanbirkner</groupId>
6663
<artifactId>system-rules</artifactId>
67-
<version>1.19.0</version>
6864
<scope>test</scope>
6965
</dependency>
7066
<dependency>
@@ -92,7 +88,6 @@
9288
<dependency>
9389
<groupId>uk.org.webcompere</groupId>
9490
<artifactId>system-stubs-jupiter</artifactId>
95-
<version>2.1.1</version>
9691
<scope>test</scope>
9792
</dependency>
9893
<dependency>
@@ -103,7 +98,6 @@
10398
<dependency>
10499
<groupId>commons-validator</groupId>
105100
<artifactId>commons-validator</artifactId>
106-
<version>1.7</version>
107101
<scope>test</scope>
108102
</dependency>
109103
<dependency>

spring-boot-examples/workflows/multi-app/orchestrator/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<dependency>
3939
<groupId>com.redis</groupId>
4040
<artifactId>testcontainers-redis</artifactId>
41-
<version>2.2.2</version>
4241
<scope>test</scope>
4342
</dependency>
4443
<dependency>

spring-boot-examples/workflows/multi-app/worker-one/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<dependency>
3939
<groupId>com.redis</groupId>
4040
<artifactId>testcontainers-redis</artifactId>
41-
<version>2.2.2</version>
4241
<scope>test</scope>
4342
</dependency>
4443
<dependency>

spring-boot-examples/workflows/multi-app/worker-two/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<dependency>
3939
<groupId>com.redis</groupId>
4040
<artifactId>testcontainers-redis</artifactId>
41-
<version>2.2.2</version>
4241
<scope>test</scope>
4342
</dependency>
4443
<dependency>

0 commit comments

Comments
 (0)