Skip to content

Commit a5b5b0f

Browse files
committed
[BAEL-12090] - Extract versions into properties
1 parent 52db7dd commit a5b5b0f

File tree

40 files changed

+267
-175
lines changed

40 files changed

+267
-175
lines changed

Diff for: akka-http/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>com.typesafe.akka</groupId>
2525
<artifactId>akka-stream_2.12</artifactId>
26-
<version>2.5.11</version>
26+
<version>${akka.stream.version}</version>
2727
</dependency>
2828
<dependency>
2929
<groupId>com.typesafe.akka</groupId>

Diff for: algorithms-miscellaneous-2/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<plugin>
6969
<groupId>org.codehaus.mojo</groupId>
7070
<artifactId>cobertura-maven-plugin</artifactId>
71-
<version>2.7</version>
71+
<version>${cobertura-maven-plugin.version}</version>
7272
<configuration>
7373
<instrumentation>
7474
<ignores>
@@ -91,6 +91,7 @@
9191
<org.jgrapht.ext.version>1.0.1</org.jgrapht.ext.version>
9292
<org.assertj.core.version>3.9.0</org.assertj.core.version>
9393
<commons-codec.version>1.11</commons-codec.version>
94+
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
9495
</properties>
9596

9697
</project>
272 Bytes
Loading

Diff for: apache-geode/pom.xml

+19-17
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@
1212
<artifactId>parent-modules</artifactId>
1313
<version>1.0.0-SNAPSHOT</version>
1414
</parent>
15-
16-
<properties>
17-
<geode.core>1.6.0</geode.core>
18-
</properties>
19-
<build>
20-
<plugins>
21-
<plugin>
22-
<groupId>org.apache.maven.plugins</groupId>
23-
<artifactId>maven-compiler-plugin</artifactId>
24-
<configuration>
25-
<source>1.8</source>
26-
<target>1.8</target>
27-
</configuration>
28-
</plugin>
29-
</plugins>
30-
</build>
3115

3216
<dependencies>
3317
<dependency>
@@ -38,8 +22,26 @@
3822
<dependency>
3923
<groupId>junit</groupId>
4024
<artifactId>junit</artifactId>
41-
<version>RELEASE</version>
25+
<version>${junit.version}</version>
4226
</dependency>
4327
</dependencies>
4428

29+
<build>
30+
<plugins>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-compiler-plugin</artifactId>
34+
<configuration>
35+
<source>${maven.compiler.source}</source>
36+
<target>${maven.compiler.target}</target>
37+
</configuration>
38+
</plugin>
39+
</plugins>
40+
</build>
41+
42+
<properties>
43+
<geode.core>1.6.0</geode.core>
44+
<maven.compiler.source>1.8</maven.compiler.source>
45+
<maven.compiler.target>1.8</maven.compiler.target>
46+
</properties>
4547
</project>

Diff for: apache-meecrowave/pom.xml

+18-11
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,58 @@
77
<name>apache-meecrowave</name>
88
<description>A sample REST API application with Meecrowave</description>
99

10-
<properties>
11-
<maven.compiler.source>1.8</maven.compiler.source>
12-
<maven.compiler.target>1.8</maven.compiler.target>
13-
</properties>
1410
<dependencies>
1511
<!-- https://mvnrepository.com/artifact/org.apache.meecrowave/meecrowave-core -->
1612
<dependency>
1713
<groupId>org.apache.meecrowave</groupId>
1814
<artifactId>meecrowave-core</artifactId>
19-
<version>1.2.1</version>
15+
<version>${meecrowave-core.version}</version>
2016
</dependency>
2117
<!-- https://mvnrepository.com/artifact/org.apache.meecrowave/meecrowave-jpa -->
2218
<dependency>
2319
<groupId>org.apache.meecrowave</groupId>
2420
<artifactId>meecrowave-jpa</artifactId>
25-
<version>1.2.1</version>
21+
<version>${meecrowave-jpa.version}</version>
2622
</dependency>
2723

2824
<dependency>
2925
<groupId>com.squareup.okhttp3</groupId>
3026
<artifactId>okhttp</artifactId>
31-
<version>3.10.0</version>
27+
<version>${okhttp.version}</version>
3228
</dependency>
3329
<dependency>
3430
<groupId>org.apache.meecrowave</groupId>
3531
<artifactId>meecrowave-junit</artifactId>
36-
<version>1.2.0</version>
32+
<version>${meecrowave-junit.version}</version>
3733
<scope>test</scope>
3834
</dependency>
3935
<!-- https://mvnrepository.com/artifact/junit/junit -->
4036
<dependency>
4137
<groupId>junit</groupId>
4238
<artifactId>junit</artifactId>
43-
<version>4.10</version>
39+
<version>${junit.version}</version>
4440
<scope>test</scope>
4541
</dependency>
46-
4742
</dependencies>
43+
4844
<build>
4945
<plugins>
5046
<plugin>
5147
<groupId>org.apache.meecrowave</groupId>
5248
<artifactId>meecrowave-maven-plugin</artifactId>
53-
<version>1.2.1</version>
49+
<version>${meecrowave-maven-plugin.version}</version>
5450
</plugin>
5551
</plugins>
5652
</build>
53+
54+
<properties>
55+
<maven.compiler.source>1.8</maven.compiler.source>
56+
<maven.compiler.target>1.8</maven.compiler.target>
57+
<junit.version>4.10</junit.version>
58+
<meecrowave-junit.version>1.2.0</meecrowave-junit.version>
59+
<okhttp.version>3.10.0</okhttp.version>
60+
<meecrowave-jpa.version>1.2.1</meecrowave-jpa.version>
61+
<meecrowave-core.version>1.2.1</meecrowave-core.version>
62+
<meecrowave-maven-plugin.version>1.2.1</meecrowave-maven-plugin.version>
63+
</properties>
5764
</project>

Diff for: apache-pulsar/pom.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111
<dependency>
1212
<groupId>org.apache.pulsar</groupId>
1313
<artifactId>pulsar-client</artifactId>
14-
<version>2.1.1-incubating</version>
14+
<version>${pulsar-client.version}</version>
1515
<scope>compile</scope>
1616
</dependency>
1717
</dependencies>
18+
1819
<properties>
1920
<maven.compiler.target>1.8</maven.compiler.target>
2021
<maven.compiler.source>1.8</maven.compiler.source>
22+
<pulsar-client.version>2.1.1-incubating</pulsar-client.version>
2123
</properties>
2224
</project>

Diff for: apache-spark/pom.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<plugin>
5555
<groupId>org.apache.maven.plugins</groupId>
5656
<artifactId>maven-compiler-plugin</artifactId>
57-
<version>3.2</version>
57+
<version>${maven-compiler-plugin.version}</version>
5858
<configuration>
59-
<source>1.8</source>
60-
<target>1.8</target>
59+
<source>${maven.compiler.source}</source>
60+
<target>${maven.compiler.target}</target>
6161
</configuration>
6262
</plugin>
6363
<plugin>
@@ -85,6 +85,9 @@
8585
<org.apache.spark.spark-streaming-kafka.version>2.3.0</org.apache.spark.spark-streaming-kafka.version>
8686
<com.datastax.spark.spark-cassandra-connector.version>2.3.0</com.datastax.spark.spark-cassandra-connector.version>
8787
<com.datastax.spark.spark-cassandra-connector-java.version>1.5.2</com.datastax.spark.spark-cassandra-connector-java.version>
88+
<maven.compiler.source>1.8</maven.compiler.source>
89+
<maven.compiler.target>1.8</maven.compiler.target>
90+
<maven-compiler-plugin.version>3.2</maven-compiler-plugin.version>
8891
</properties>
8992

9093
</project>

Diff for: axon/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>org.springframework.boot</groupId>
3838
<artifactId>spring-boot-autoconfigure</artifactId>
39-
<version>2.1.1.RELEASE</version>
39+
<version>${spring-boot.version}</version>
4040
<scope>compile</scope>
4141
</dependency>
4242

Diff for: blade/pom.xml

+37-21
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
44

55
<modelVersion>4.0.0</modelVersion>
6-
<artifactId>blade</artifactId>
7-
<name>blade</name>
8-
96
<!-- WITH THIS mvn integration-test DOES WORK -->
107
<groupId>com.baeldung</groupId>
8+
<artifactId>blade</artifactId>
119
<version>1.0.0-SNAPSHOT</version>
10+
<name>blade</name>
11+
1212

1313
<!-- WITH THIS mvn integration-test DOESN'T WORK -->
1414
<!-- <parent> -->
@@ -17,67 +17,62 @@
1717
<!-- <version>1.0.0-SNAPSHOT</version> -->
1818
<!-- </parent> -->
1919

20-
<properties>
21-
<maven.compiler.source>1.8</maven.compiler.source>
22-
<maven.compiler.target>1.8</maven.compiler.target>
23-
</properties>
24-
2520
<dependencies>
2621
<dependency>
2722
<groupId>com.bladejava</groupId>
2823
<artifactId>blade-mvc</artifactId>
29-
<version>2.0.14.RELEASE</version>
24+
<version>${blade-mvc.version}</version>
3025
</dependency>
3126

3227
<dependency>
3328
<groupId>org.webjars</groupId>
3429
<artifactId>bootstrap</artifactId>
35-
<version>4.2.1</version>
30+
<version>${bootstrap.version}</version>
3631
</dependency>
3732

3833
<dependency>
3934
<groupId>org.apache.commons</groupId>
4035
<artifactId>commons-lang3</artifactId>
41-
<version>3.8.1</version>
36+
<version>${commons-lang3.version}</version>
4237
</dependency>
4338

4439
<!-- PROVIDED -->
4540
<dependency>
4641
<groupId>org.projectlombok</groupId>
4742
<artifactId>lombok</artifactId>
48-
<version>1.18.4</version>
43+
<version>${lombok.version}</version>
4944
<scope>provided</scope>
5045
</dependency>
5146

5247
<!-- TEST -->
5348
<dependency>
5449
<groupId>junit</groupId>
5550
<artifactId>junit</artifactId>
56-
<version>4.12</version>
51+
<version>${junit.version}</version>
5752
<scope>test</scope>
5853
</dependency>
5954
<dependency>
6055
<groupId>org.assertj</groupId>
6156
<artifactId>assertj-core</artifactId>
62-
<version>3.11.1</version>
57+
<version>${assertj-core.version}</version>
6358
<scope>test</scope>
6459
</dependency>
6560
<dependency>
6661
<groupId>org.apache.httpcomponents</groupId>
6762
<artifactId>httpclient</artifactId>
68-
<version>4.5.6</version>
63+
<version>${httpclient.version}</version>
6964
<scope>test</scope>
7065
</dependency>
7166
<dependency>
7267
<groupId>org.apache.httpcomponents</groupId>
7368
<artifactId>httpmime</artifactId>
74-
<version>4.5.6</version>
69+
<version>${httpmime.version}</version>
7570
<scope>test</scope>
7671
</dependency>
7772
<dependency>
7873
<groupId>org.apache.httpcomponents</groupId>
7974
<artifactId>httpcore</artifactId>
80-
<version>4.4.10</version>
75+
<version>${httpcore.version}</version>
8176
<scope>test</scope>
8277
</dependency>
8378
</dependencies>
@@ -88,6 +83,7 @@
8883
<plugin>
8984
<groupId>org.apache.maven.plugins</groupId>
9085
<artifactId>maven-surefire-plugin</artifactId>
86+
<version>${maven-surefire-plugin.version}</version>
9187
<configuration>
9288
<forkCount>3</forkCount>
9389
<reuseForks>true</reuseForks>
@@ -100,7 +96,7 @@
10096
<plugin>
10197
<groupId>org.apache.maven.plugins</groupId>
10298
<artifactId>maven-failsafe-plugin</artifactId>
103-
<version>3.0.0-M3</version>
99+
<version>${maven-failsafe-plugin.version}</version>
104100
<configuration>
105101
<includes>
106102
<include>**/*LiveTest.java</include>
@@ -119,7 +115,7 @@
119115
<plugin>
120116
<groupId>com.bazaarvoice.maven.plugins</groupId>
121117
<artifactId>process-exec-maven-plugin</artifactId>
122-
<version>0.7</version>
118+
<version>${process-exec-maven-plugin.version}</version>
123119
<executions>
124120
<!--Start Blade -->
125121
<execution>
@@ -177,13 +173,33 @@
177173
</executions>
178174
</plugin>
179175
<plugin>
176+
<groupId>org.apache.maven.plugins</groupId>
180177
<artifactId>maven-compiler-plugin</artifactId>
178+
<version>${maven-compiler-plugin.version}</version>
181179
<configuration>
182-
<source>1.8</source>
183-
<target>1.8</target>
180+
<source>${maven.compiler.source}</source>
181+
<target>${maven.compiler.target}</target>
184182
<encoding>UTF-8</encoding>
185183
</configuration>
186184
</plugin>
187185
</plugins>
188186
</build>
187+
188+
<properties>
189+
<maven.compiler.source>1.8</maven.compiler.source>
190+
<maven.compiler.target>1.8</maven.compiler.target>
191+
<blade-mvc.version>2.0.14.RELEASE</blade-mvc.version>
192+
<bootstrap.version>4.2.1</bootstrap.version>
193+
<commons-lang3.version>3.8.1</commons-lang3.version>
194+
<lombok.version>1.18.4</lombok.version>
195+
<junit.version>4.12</junit.version>
196+
<httpclient.version>4.5.6</httpclient.version>
197+
<httpmime.version>4.5.6</httpmime.version>
198+
<httpcore.version>4.4.10</httpcore.version>
199+
<assertj-core.version>3.11.1</assertj-core.version>
200+
<maven-failsafe-plugin.version>3.0.0-M3</maven-failsafe-plugin.version>
201+
<process-exec-maven-plugin.version>0.7</process-exec-maven-plugin.version>
202+
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
203+
<maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
204+
</properties>
189205
</project>

Diff for: cdi/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
<scope>test</scope>
6060
</dependency>
6161
</dependencies>
62+
6263
<properties>
6364
<cdi-api.version>2.0.SP1</cdi-api.version>
6465
<weld-se-core.version>3.0.5.Final</weld-se-core.version>

Diff for: core-java-collections-list/pom.xml

+6-3
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040
<dependency>
4141
<groupId>net.sf.trove4j</groupId>
4242
<artifactId>trove4j</artifactId>
43-
<version>3.0.2</version>
43+
<version>${trove4j.version}</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>it.unimi.dsi</groupId>
4747
<artifactId>fastutil</artifactId>
48-
<version>8.1.0</version>
48+
<version>${fastutil.version}</version>
4949
</dependency>
5050
<dependency>
5151
<groupId>colt</groupId>
5252
<artifactId>colt</artifactId>
53-
<version>1.2.0</version>
53+
<version>${colt.version}</version>
5454
</dependency>
5555
</dependencies>
5656

@@ -60,5 +60,8 @@
6060
<avaitility.version>1.7.0</avaitility.version>
6161
<assertj.version>3.11.1</assertj.version>
6262
<lombok.version>1.16.12</lombok.version>
63+
<trove4j.version>3.0.2</trove4j.version>
64+
<fastutil.version>8.1.0</fastutil.version>
65+
<colt.version>1.2.0</colt.version>
6366
</properties>
6467
</project>

0 commit comments

Comments
 (0)