Skip to content

Commit bf15a20

Browse files
committed
Extract versions to properties
1 parent 41d1f3c commit bf15a20

File tree

1 file changed

+41
-21
lines changed

1 file changed

+41
-21
lines changed

pom.xml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@
3131
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3232

3333
<embedded-postgres-binaries.version>14.11.0</embedded-postgres-binaries.version>
34+
<commons-codec.version>1.17.0</commons-codec.version>
35+
<commons-compress.version>1.26.2</commons-compress.version>
36+
<commons-io.version>2.16.1</commons-io.version>
37+
<commons-lang3.version>3.14.0</commons-lang3.version>
38+
<flyway.version>7.15.0</flyway.version>
39+
<junit5.version>5.10.3</junit5.version>
40+
<junit4.version>4.13.2</junit4.version>
41+
<liquibase.version>4.28.0</liquibase.version>
42+
<mockito.version>4.11.0</mockito.version>
43+
<pmd.version>7.3.0</pmd.version>
44+
<postgresql.version>42.7.3</postgresql.version>
45+
<slf4j.version>2.0.13</slf4j.version>
46+
<xz.version>1.9</xz.version>
47+
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
48+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
49+
<maven-javadoc-plugin.version>3.7.0</maven-javadoc-plugin.version>
50+
<maven-pmd-plugin.version>3.23.0</maven-pmd-plugin.version>
51+
<maven-release-plugin.version>3.1.0</maven-release-plugin.version>
52+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
53+
<maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version>
3454
</properties>
3555

3656
<url>https://github.com/zonkyio/embedded-postgres</url>
@@ -76,34 +96,34 @@
7696
<dependency>
7797
<groupId>commons-io</groupId>
7898
<artifactId>commons-io</artifactId>
79-
<version>2.16.1</version>
99+
<version>${commons-io.version}</version>
80100
</dependency>
81101
<dependency>
82102
<groupId>org.apache.commons</groupId>
83103
<artifactId>commons-lang3</artifactId>
84-
<version>3.14.0</version>
104+
<version>${commons-lang3.version}</version>
85105
</dependency>
86106
<dependency>
87107
<groupId>org.apache.commons</groupId>
88108
<artifactId>commons-compress</artifactId>
89-
<version>1.26.2</version>
109+
<version>${commons-compress.version}</version>
90110
</dependency>
91111
<dependency>
92112
<groupId>commons-codec</groupId>
93113
<artifactId>commons-codec</artifactId>
94-
<version>1.17.0</version>
114+
<version>${commons-codec.version}</version>
95115
</dependency>
96116
<dependency>
97117
<groupId>org.junit</groupId>
98118
<artifactId>junit-bom</artifactId>
99-
<version>5.10.3</version>
119+
<version>${junit5.version}</version>
100120
<type>pom</type>
101121
<scope>import</scope>
102122
</dependency>
103123
<dependency>
104124
<groupId>org.slf4j</groupId>
105125
<artifactId>slf4j-bom</artifactId>
106-
<version>2.0.13</version>
126+
<version>${slf4j.version}</version>
107127
<type>pom</type>
108128
<scope>import</scope>
109129
</dependency>
@@ -150,7 +170,7 @@
150170
<dependency>
151171
<groupId>org.tukaani</groupId>
152172
<artifactId>xz</artifactId>
153-
<version>1.9</version>
173+
<version>${xz.version}</version>
154174
</dependency>
155175
<dependency>
156176
<groupId>commons-io</groupId>
@@ -163,24 +183,24 @@
163183
<dependency>
164184
<groupId>org.flywaydb</groupId>
165185
<artifactId>flyway-core</artifactId>
166-
<version>7.15.0</version>
186+
<version>${flyway.version}</version>
167187
<optional>true</optional>
168188
</dependency>
169189
<dependency>
170190
<groupId>org.liquibase</groupId>
171191
<artifactId>liquibase-core</artifactId>
172-
<version>4.28.0</version>
192+
<version>${liquibase.version}</version>
173193
<optional>true</optional>
174194
</dependency>
175195
<dependency>
176196
<groupId>org.postgresql</groupId>
177197
<artifactId>postgresql</artifactId>
178-
<version>42.7.3</version>
198+
<version>${postgresql.version}</version>
179199
</dependency>
180200
<dependency>
181201
<groupId>junit</groupId>
182202
<artifactId>junit</artifactId>
183-
<version>4.13.2</version>
203+
<version>${junit4.version}</version>
184204
<scope>provided</scope>
185205
<optional>true</optional>
186206
</dependency>
@@ -209,7 +229,7 @@
209229
<dependency>
210230
<groupId>org.mockito</groupId>
211231
<artifactId>mockito-core</artifactId>
212-
<version>4.11.0</version><!-- last Java 8 version -->
232+
<version>${mockito.version}</version><!-- last Java 8 version -->
213233
<scope>test</scope>
214234
</dependency>
215235
</dependencies>
@@ -219,7 +239,7 @@
219239
<plugin>
220240
<groupId>org.apache.maven.plugins</groupId>
221241
<artifactId>maven-enforcer-plugin</artifactId>
222-
<version>3.5.0</version>
242+
<version>${maven-enforcer-plugin.version}</version>
223243
<executions>
224244
<execution>
225245
<id>enforce-versions</id>
@@ -237,11 +257,11 @@
237257
</plugin>
238258
<plugin>
239259
<artifactId>maven-surefire-plugin</artifactId>
240-
<version>3.3.1</version>
260+
<version>${maven-surefire-plugin.version}</version>
241261
</plugin>
242262
<plugin>
243263
<artifactId>maven-pmd-plugin</artifactId>
244-
<version>3.23.0</version>
264+
<version>${maven-pmd-plugin.version}</version>
245265
<executions>
246266
<execution>
247267
<phase>verify</phase>
@@ -254,13 +274,13 @@
254274
<dependency>
255275
<groupId>net.sourceforge.pmd</groupId>
256276
<artifactId>pmd-core</artifactId>
257-
<version>7.3.0</version>
277+
<version>${pmd.version}</version>
258278
<scope>compile</scope>
259279
</dependency>
260280
<dependency>
261281
<groupId>net.sourceforge.pmd</groupId>
262282
<artifactId>pmd-java</artifactId>
263-
<version>7.3.0</version>
283+
<version>${pmd.version}</version>
264284
<scope>compile</scope>
265285
</dependency>
266286
</dependencies>
@@ -276,7 +296,7 @@
276296
<plugin>
277297
<groupId>org.apache.maven.plugins</groupId>
278298
<artifactId>maven-source-plugin</artifactId>
279-
<version>3.3.1</version>
299+
<version>${maven-source-plugin.version}</version>
280300
<executions>
281301
<execution>
282302
<id>attach-sources</id>
@@ -289,7 +309,7 @@
289309
<plugin>
290310
<groupId>org.apache.maven.plugins</groupId>
291311
<artifactId>maven-javadoc-plugin</artifactId>
292-
<version>3.7.0</version>
312+
<version>${maven-javadoc-plugin.version}</version>
293313
<executions>
294314
<execution>
295315
<id>attach-javadocs</id>
@@ -305,7 +325,7 @@
305325
<plugin>
306326
<groupId>org.apache.maven.plugins</groupId>
307327
<artifactId>maven-release-plugin</artifactId>
308-
<version>3.1.0</version>
328+
<version>${maven-release-plugin.version}</version>
309329
<configuration>
310330
<useReleaseProfile>false</useReleaseProfile>
311331
<releaseProfiles>release</releaseProfiles>
@@ -323,7 +343,7 @@
323343
<plugin>
324344
<groupId>org.apache.maven.plugins</groupId>
325345
<artifactId>maven-gpg-plugin</artifactId>
326-
<version>1.6</version>
346+
<version>${maven-gpg-plugin.version}</version>
327347
<executions>
328348
<execution>
329349
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)