Skip to content

Commit 60fc967

Browse files
committed
[BAEL-17326] - Extract versions into properties
1 parent 9154f5e commit 60fc967

File tree

21 files changed

+77
-43
lines changed

21 files changed

+77
-43
lines changed

bazel/bazelapp/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616
<dependency>
1717
<groupId>com.baeldung</groupId>
1818
<artifactId>bazelgreeting</artifactId>
19-
<version>1.0.0-SNAPSHOT</version>
19+
<version>${bazelgreeting.version}</version>
2020
</dependency>
2121
<dependency>
2222
<groupId>org.apache.commons</groupId>
2323
<artifactId>commons-lang3</artifactId>
24-
<version>3.9</version>
24+
<version>${commons-lang3.version}</version>
2525
</dependency>
2626
</dependencies>
2727

28+
<properties>
29+
<bazelgreeting.version>1.0.0-SNAPSHOT</bazelgreeting.version>
30+
</properties>
2831

2932
</project>

kotlin-libraries/pom.xml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<dependency>
101101
<groupId>io.arrow-kt</groupId>
102102
<artifactId>arrow-core</artifactId>
103-
<version>0.7.3</version>
103+
<version>${arrow-core.version}</version>
104104
</dependency>
105105

106106
<dependency>
@@ -117,7 +117,7 @@
117117
<dependency>
118118
<groupId>nl.komponents.kovenant</groupId>
119119
<artifactId>kovenant</artifactId>
120-
<version>3.3.0</version>
120+
<version>${kovenant.version}</version>
121121
<type>pom</type>
122122
</dependency>
123123

@@ -132,13 +132,13 @@
132132
<dependency>
133133
<groupId>com.google.guava</groupId>
134134
<artifactId>guava</artifactId>
135-
<version>27.1-jre</version>
135+
<version>${guava.version}</version>
136136
</dependency>
137137
<!-- https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-collections-immutable -->
138138
<dependency>
139139
<groupId>org.jetbrains.kotlinx</groupId>
140140
<artifactId>kotlinx-collections-immutable</artifactId>
141-
<version>0.1</version>
141+
<version>${kotlinx-collections-immutable.version}</version>
142142
</dependency>
143143

144144
<!-- MockK dependencies-->
@@ -151,26 +151,26 @@
151151
<dependency>
152152
<groupId>net.bytebuddy</groupId>
153153
<artifactId>byte-buddy</artifactId>
154-
<version>1.8.13</version>
154+
<version>${byte-buddy.version}</version>
155155
<scope>compile</scope>
156156
</dependency>
157157
<dependency>
158158
<groupId>net.bytebuddy</groupId>
159159
<artifactId>byte-buddy-agent</artifactId>
160-
<version>1.8.13</version>
160+
<version>${byte-buddy.version}</version>
161161
<scope>compile</scope>
162162
</dependency>
163163
<dependency>
164164
<groupId>org.objenesis</groupId>
165165
<artifactId>objenesis</artifactId>
166-
<version>2.6</version>
166+
<version>${objenesis.version}</version>
167167
<scope>compile</scope>
168168
</dependency>
169169

170170
<dependency>
171171
<groupId>io.reactivex.rxjava2</groupId>
172172
<artifactId>rxkotlin</artifactId>
173-
<version>2.3.0</version>
173+
<version>${rxkotlin.version}</version>
174174
</dependency>
175175
</dependencies>
176176

@@ -186,6 +186,13 @@
186186
<assertj.version>3.10.0</assertj.version>
187187
<exposed.version>0.10.4</exposed.version>
188188
<mockk.version>1.9.3</mockk.version>
189+
<guava.version>27.1-jre</guava.version>
190+
<kovenant.version>3.3.0</kovenant.version>
191+
<byte-buddy.version>1.8.13</byte-buddy.version>
192+
<objenesis.version>2.6</objenesis.version>
193+
<rxkotlin.version>2.3.0</rxkotlin.version>
194+
<kotlinx-collections-immutable.version>0.1</kotlinx-collections-immutable.version>
195+
<arrow-core.version>0.7.3</arrow-core.version>
189196
</properties>
190197

191198
</project>

libraries/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
<dependency>
580580
<groupId>org.asciidoctor</groupId>
581581
<artifactId>asciidoctor-maven-plugin</artifactId>
582-
<version>1.5.7.1</version>
582+
<version>${asciidoctor-maven-plugin.version}</version>
583583
</dependency>
584584
<!-- Reflections -->
585585
<dependency>
@@ -789,6 +789,7 @@
789789
<mockftpserver.version>2.7.1</mockftpserver.version>
790790
<commons-net.version>3.6</commons-net.version>
791791
<reflections.version>0.9.11</reflections.version>
792+
<asciidoctor-maven-plugin.version>1.5.7.1</asciidoctor-maven-plugin.version>
792793

793794
</properties>
794795

oauth2-framework-impl/oauth2-authorization-server/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,26 @@
1818
<h2.version>1.4.199</h2.version>
1919
<httpPort>9080</httpPort>
2020
<httpsPort>9443</httpsPort>
21+
<nimbus-jose-jwt.version>7.3</nimbus-jose-jwt.version>
22+
<bcprov-jdk15on.version>1.62</bcprov-jdk15on.version>
23+
<bcpkix-jdk15on.version>1.62</bcpkix-jdk15on.version>
2124
</properties>
2225

2326
<dependencies>
2427
<dependency>
2528
<groupId>com.nimbusds</groupId>
2629
<artifactId>nimbus-jose-jwt</artifactId>
27-
<version>7.3</version>
30+
<version>${nimbus-jose-jwt.version}</version>
2831
</dependency>
2932
<dependency>
3033
<groupId>org.bouncycastle</groupId>
3134
<artifactId>bcprov-jdk15on</artifactId>
32-
<version>1.62</version>
35+
<version>${bcprov-jdk15on.version}</version>
3336
</dependency>
3437
<dependency>
3538
<groupId>org.bouncycastle</groupId>
3639
<artifactId>bcpkix-jdk15on</artifactId>
37-
<version>1.62</version>
40+
<version>${bcpkix-jdk15on.version}</version>
3841
</dependency>
3942
</dependencies>
4043
<build>

oauth2-framework-impl/oauth2-resource-server/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
<httpsPort>8643</httpsPort>
1919
<jwt.issuer>http://localhost:9080</jwt.issuer>
2020
<jwt.resourceId>http://localhost:9280</jwt.resourceId>
21+
<microprofile-jwt-auth-api.version>1.1</microprofile-jwt-auth-api.version>
2122
</properties>
2223

2324
<dependencies>
2425
<dependency>
2526
<groupId>org.eclipse.microprofile.jwt</groupId>
2627
<artifactId>microprofile-jwt-auth-api</artifactId>
27-
<version>1.1</version>
28+
<version>${microprofile-jwt-auth-api.version}</version>
2829
<scope>provided</scope>
2930
</dependency>
3031
</dependencies>

oauth2-framework-impl/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
<failOnMissingWebXml>false</failOnMissingWebXml>
1616
<openliberty.version>RELEASE</openliberty.version>
1717
<openliberty.maven.version>2.6.4</openliberty.maven.version>
18+
<javaee-web-api.version>8.0</javaee-web-api.version>
19+
<microprofile-config-api.version>1.3</microprofile-config-api.version>
1820
</properties>
1921

2022
<dependencies>
2123
<dependency>
2224
<groupId>javax</groupId>
2325
<artifactId>javaee-web-api</artifactId>
24-
<version>8.0</version>
26+
<version>${javaee-web-api.version}</version>
2527
<scope>provided</scope>
2628
</dependency>
2729
<dependency>
2830
<groupId>org.eclipse.microprofile.config</groupId>
2931
<artifactId>microprofile-config-api</artifactId>
30-
<version>1.3</version>
32+
<version>${microprofile-config-api.version}</version>
3133
<scope>provided</scope>
3234
</dependency>
3335
</dependencies>

optaplanner/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
<dependency>
1717
<groupId>org.optaplanner</groupId>
1818
<artifactId>optaplanner-core</artifactId>
19-
<version>7.9.0.Final</version>
19+
<version>${optaplanner-core.version}</version>
2020
</dependency>
2121
</dependencies>
2222

23+
<properties>
24+
<optaplanner-core.version>7.9.0.Final</optaplanner-core.version>
25+
</properties>
26+
2327
</project>

persistence-modules/java-jpa/pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
<plugin>
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-compiler-plugin</artifactId>
60-
<version>3.5.1</version>
60+
<version>${maven-compiler-plugin.version}</version>
6161
<configuration>
6262
<compilerArgument>-proc:none</compilerArgument>
6363
</configuration>
6464
</plugin>
6565
<plugin>
6666
<groupId>org.bsc.maven</groupId>
6767
<artifactId>maven-processor-plugin</artifactId>
68-
<version>3.3.3</version>
68+
<version>${maven-processor-plugin.version}</version>
6969
<executions>
7070
<execution>
7171
<id>process</id>
@@ -86,7 +86,7 @@
8686
<plugin>
8787
<groupId>org.codehaus.mojo</groupId>
8888
<artifactId>build-helper-maven-plugin</artifactId>
89-
<version>3.0.0</version>
89+
<version>${build-helper-maven-plugin.version}</version>
9090
<executions>
9191
<execution>
9292
<id>add-source</id>
@@ -110,6 +110,8 @@
110110
<eclipselink.version>2.7.4-RC1</eclipselink.version>
111111
<postgres.version>42.2.5</postgres.version>
112112
<javax.persistence-api.version>2.2</javax.persistence-api.version>
113+
<maven-processor-plugin.version>3.3.3</maven-processor-plugin.version>
114+
<build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
113115
</properties>
114116

115117
</project>

persistence-modules/r2dbc/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
<properties>
1919
<java.version>1.8</java.version>
20+
<r2dbc-h2.version>0.8.0.M8</r2dbc-h2.version>
2021
</properties>
2122

2223
<dependencies>
@@ -41,7 +42,7 @@
4142
<dependency>
4243
<groupId>io.r2dbc</groupId>
4344
<artifactId>r2dbc-h2</artifactId>
44-
<version>0.8.0.M8</version>
45+
<version>${r2dbc-h2.version}</version>
4546
</dependency>
4647

4748
<dependency>

persistence-modules/sirix/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>io.sirix</groupId>
2222
<artifactId>sirix-core</artifactId>
23-
<version>0.9.3</version>
23+
<version>${sirix-core.version}</version>
2424
</dependency>
2525
</dependencies>
2626

@@ -48,5 +48,6 @@
4848
<properties>
4949
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5050
<maven.release.version>11</maven.release.version>
51+
<sirix-core.version>0.9.3</sirix-core.version>
5152
</properties>
5253
</project>

0 commit comments

Comments
 (0)