Skip to content

Commit 0e26a6a

Browse files
authored
Use property to set version and update dependencies (iluwatar#1671)
* formatting and versioning * updated versions * reverted checkstyle plugin version
1 parent b423002 commit 0e26a6a

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

pom.xml

+25-9
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2828
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2929
<modelVersion>4.0.0</modelVersion>
30+
3031
<groupId>com.iluwatar</groupId>
3132
<artifactId>java-design-patterns</artifactId>
3233
<version>1.24.0-SNAPSHOT</version>
3334
<packaging>pom</packaging>
35+
3436
<inceptionYear>2014-2021</inceptionYear>
37+
3538
<properties>
3639
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3740
<sonar-maven-plugin.version>3.8.0.2131</sonar-maven-plugin.version>
@@ -65,13 +68,22 @@
6568
<system-lambda.version>1.1.0</system-lambda.version>
6669
<urm.version>2.0.0</urm.version>
6770
<mockito-junit-jupiter.version>3.5.0</mockito-junit-jupiter.version>
71+
<byte-buddy.version>1.10.21</byte-buddy.version>
72+
<javassist.version>3.27.0-GA</javassist.version>
73+
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
74+
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
75+
<directory-maven-plugin.version>0.3.1</directory-maven-plugin.version>
76+
<license-maven-plugin.version>3.0</license-maven-plugin.version>
77+
<urm-maven-plugin.version>1.4.8</urm-maven-plugin.version>
78+
6879
<!-- SonarCloud -->
6980
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
7081
<sonar.organization>iluwatar</sonar.organization>
7182
<sonar.projectKey>iluwatar_java-design-patterns</sonar.projectKey>
7283
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
7384
<sonar.projectName>Java Design Patterns</sonar.projectName>
7485
</properties>
86+
7587
<modules>
7688
<module>abstract-factory</module>
7789
<module>tls</module>
@@ -223,13 +235,13 @@
223235
<dependency>
224236
<groupId>net.bytebuddy</groupId>
225237
<artifactId>byte-buddy</artifactId>
226-
<version>1.9.7</version>
238+
<version>${byte-buddy.version}</version>
227239
<scope>test</scope>
228240
</dependency>
229241
<dependency>
230242
<groupId>net.bytebuddy</groupId>
231243
<artifactId>byte-buddy-agent</artifactId>
232-
<version>1.9.7</version>
244+
<version>${byte-buddy.version}</version>
233245
<scope>test</scope>
234246
</dependency>
235247
<dependency>
@@ -354,7 +366,7 @@
354366
<dependency>
355367
<groupId>org.javassist</groupId>
356368
<artifactId>javassist</artifactId>
357-
<version>3.26.0-GA</version>
369+
<version>${javassist.version}</version>
358370
</dependency>
359371
<dependency>
360372
<groupId>com.github.stefanbirkner</groupId>
@@ -395,16 +407,19 @@
395407
<target>11</target>
396408
</configuration>
397409
</plugin>
410+
398411
<plugin>
399412
<groupId>org.apache.maven.plugins</groupId>
400413
<artifactId>maven-surefire-plugin</artifactId>
401-
<version>3.0.0-M5</version>
414+
<version>${maven-surefire-plugin.version}</version>
402415
</plugin>
416+
403417
<plugin>
404418
<groupId>org.springframework.boot</groupId>
405419
<artifactId>spring-boot-maven-plugin</artifactId>
406420
<version>${spring-boot.version}</version>
407421
</plugin>
422+
408423
<!-- Maven assembly plugin template for all child project to follow -->
409424
<plugin>
410425
<groupId>org.apache.maven.plugins</groupId>
@@ -427,6 +442,7 @@
427442
</execution>
428443
</executions>
429444
</plugin>
445+
430446
<plugin>
431447
<groupId>org.sonarsource.scanner.maven</groupId>
432448
<artifactId>sonar-maven-plugin</artifactId>
@@ -439,7 +455,7 @@
439455
<plugin>
440456
<groupId>org.apache.maven.plugins</groupId>
441457
<artifactId>maven-checkstyle-plugin</artifactId>
442-
<version>3.1.0</version>
458+
<version>${maven-checkstyle-plugin.version}</version>
443459
<executions>
444460
<execution>
445461
<id>validate</id>
@@ -465,7 +481,7 @@
465481
<plugin>
466482
<groupId>org.commonjava.maven.plugins</groupId>
467483
<artifactId>directory-maven-plugin</artifactId>
468-
<version>0.3.1</version>
484+
<version>${directory-maven-plugin.version}</version>
469485
<executions>
470486
<execution>
471487
<id>directories</id>
@@ -483,10 +499,11 @@
483499
</execution>
484500
</executions>
485501
</plugin>
502+
486503
<plugin>
487504
<groupId>com.mycila</groupId>
488505
<artifactId>license-maven-plugin</artifactId>
489-
<version>3.0</version>
506+
<version>${license-maven-plugin.version}</version>
490507
<configuration>
491508
<header>com/mycila/maven/plugin/license/templates/MIT.txt</header>
492509
<properties>
@@ -537,7 +554,7 @@
537554
<plugin>
538555
<groupId>com.iluwatar.urm</groupId>
539556
<artifactId>urm-maven-plugin</artifactId>
540-
<version>1.4.8</version>
557+
<version>${urm-maven-plugin.version}</version>
541558
<configuration>
542559
<!-- if outputDirectory is not set explicitly it will default to your build dir -->
543560
<outputDirectory>${project.basedir}/etc</outputDirectory>
@@ -557,7 +574,6 @@
557574
</execution>
558575
</executions>
559576
</plugin>
560-
561577
</plugins>
562578
</build>
563579
</project>

0 commit comments

Comments
 (0)