Skip to content

Commit c355dca

Browse files
committed
Clean up POM
1 parent 9bb3520 commit c355dca

File tree

1 file changed

+31
-65
lines changed

1 file changed

+31
-65
lines changed

pom.xml

Lines changed: 31 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34

45
<parent>
@@ -14,7 +15,6 @@
1415

1516
<name>openapi-diff</name>
1617
<description>Utility for comparing two OpenAPI specifications.</description>
17-
<url>http://maven.apache.org</url>
1818

1919
<licenses>
2020
<license>
@@ -51,15 +51,28 @@
5151
</distributionManagement>
5252

5353
<properties>
54+
<maven.compiler.source>1.8</maven.compiler.source>
55+
<maven.compiler.target>1.8</maven.compiler.target>
5456
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5558
<project.scm.id>github</project.scm.id>
56-
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
57-
<junit.jupiter.version>5.6.2</junit.jupiter.version>
58-
<junit.platform.version>1.3.2</junit.platform.version>
59-
<assertj-core.version>3.15.0</assertj-core.version>
59+
6060
<swagger-parser.version>2.0.17</swagger-parser.version>
61+
<slf4j.version>1.7.30</slf4j.version>
6162
</properties>
6263

64+
<dependencyManagement>
65+
<dependencies>
66+
<dependency>
67+
<groupId>org.junit</groupId>
68+
<artifactId>junit-bom</artifactId>
69+
<version>5.6.2</version>
70+
<type>pom</type>
71+
<scope>import</scope>
72+
</dependency>
73+
</dependencies>
74+
</dependencyManagement>
75+
6376
<dependencies>
6477
<dependency>
6578
<groupId>io.swagger.parser.v3</groupId>
@@ -83,32 +96,13 @@
8396
</dependency>
8497
<dependency>
8598
<groupId>org.junit.jupiter</groupId>
86-
<artifactId>junit-jupiter-engine</artifactId>
87-
<version>${junit.jupiter.version}</version>
88-
<scope>test</scope>
89-
</dependency>
90-
<dependency>
91-
<groupId>org.junit.jupiter</groupId>
92-
<artifactId>junit-jupiter-api</artifactId>
93-
<version>${junit.jupiter.version}</version>
94-
<scope>test</scope>
95-
</dependency>
96-
<dependency>
97-
<groupId>org.junit.platform</groupId>
98-
<artifactId>junit-platform-runner</artifactId>
99-
<version>${junit.platform.version}</version>
100-
<scope>test</scope>
101-
</dependency>
102-
<dependency>
103-
<groupId>org.junit.platform</groupId>
104-
<artifactId>junit-platform-launcher</artifactId>
105-
<version>${junit.platform.version}</version>
99+
<artifactId>junit-jupiter</artifactId>
106100
<scope>test</scope>
107101
</dependency>
108102
<dependency>
109103
<groupId>org.assertj</groupId>
110104
<artifactId>assertj-core</artifactId>
111-
<version>${assertj-core.version}</version>
105+
<version>3.15.0</version>
112106
<scope>test</scope>
113107
</dependency>
114108
<dependency>
@@ -124,12 +118,12 @@
124118
<dependency>
125119
<groupId>org.slf4j</groupId>
126120
<artifactId>slf4j-api</artifactId>
127-
<version>1.7.30</version>
121+
<version>${slf4j.version}</version>
128122
</dependency>
129123
<dependency>
130124
<groupId>org.slf4j</groupId>
131125
<artifactId>slf4j-log4j12</artifactId>
132-
<version>1.7.30</version>
126+
<version>${slf4j.version}</version>
133127
</dependency>
134128
<dependency>
135129
<groupId>commons-httpclient</groupId>
@@ -140,6 +134,7 @@
140134
<groupId>org.projectlombok</groupId>
141135
<artifactId>lombok</artifactId>
142136
<version>1.18.12</version>
137+
<scope>provided</scope>
143138
</dependency>
144139
</dependencies>
145140

@@ -159,12 +154,10 @@
159154
<artifactId>maven-gpg-plugin</artifactId>
160155
<version>1.6</version>
161156
<configuration>
162-
<configuration>
163-
<gpgArguments>
164-
<arg>--pinentry-mode</arg>
165-
<arg>loopback</arg>
166-
</gpgArguments>
167-
</configuration>
157+
<gpgArguments>
158+
<arg>--pinentry-mode</arg>
159+
<arg>loopback</arg>
160+
</gpgArguments>
168161
</configuration>
169162
<executions>
170163
<execution>
@@ -183,12 +176,8 @@
183176
<build>
184177
<plugins>
185178
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
186180
<artifactId>maven-compiler-plugin</artifactId>
187-
<configuration>
188-
<source>1.8</source>
189-
<target>1.8</target>
190-
<encoding>UTF-8</encoding>
191-
</configuration>
192181
<version>3.8.1</version>
193182
</plugin>
194183
<plugin>
@@ -209,12 +198,9 @@
209198
<artifactId>maven-release-plugin</artifactId>
210199
<version>2.5.3</version>
211200
<configuration>
212-
<!--<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>-->
213201
<tagNameFormat>@{project.version}</tagNameFormat>
214202
<autoVersionSubmodules>true</autoVersionSubmodules>
215203
<releaseProfiles>releases</releaseProfiles>
216-
<!--<localCheckout>true</localCheckout>-->
217-
<!--<pushChanges>false</pushChanges>-->
218204
</configuration>
219205
</plugin>
220206
<!-- Javadoc -->
@@ -239,6 +225,7 @@
239225
</executions>
240226
</plugin>
241227
<plugin>
228+
<groupId>org.apache.maven.plugins</groupId>
242229
<artifactId>maven-assembly-plugin</artifactId>
243230
<configuration>
244231
<archive>
@@ -263,28 +250,7 @@
263250
<plugin>
264251
<groupId>org.apache.maven.plugins</groupId>
265252
<artifactId>maven-surefire-plugin</artifactId>
266-
<version>${maven-surefire-plugin.version}</version>
267-
<configuration>
268-
<includes>
269-
<include>**/Test*.java</include>
270-
<include>**/*Test.java</include>
271-
<include>**/*Tests.java</include>
272-
<include>**/*TestCase.java</include>
273-
</includes>
274-
<useSystemClassLoader>false</useSystemClassLoader>
275-
</configuration>
276-
<dependencies>
277-
<dependency>
278-
<groupId>org.junit.platform</groupId>
279-
<artifactId>junit-platform-surefire-provider</artifactId>
280-
<version>${junit.platform.version}</version>
281-
</dependency>
282-
<dependency>
283-
<groupId>org.junit.jupiter</groupId>
284-
<artifactId>junit-jupiter-engine</artifactId>
285-
<version>${junit.jupiter.version}</version>
286-
</dependency>
287-
</dependencies>
253+
<version>2.22.2</version>
288254
</plugin>
289255
<plugin>
290256
<groupId>com.coveo</groupId>

0 commit comments

Comments
 (0)