|
23 | 23 | </developer> |
24 | 24 | </developers> |
25 | 25 | <properties> |
| 26 | + <!-- Project Settings --> |
26 | 27 | <maven.compiler.source>11</maven.compiler.source> |
27 | 28 | <maven.compiler.target>11</maven.compiler.target> |
28 | | - |
29 | 29 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
30 | 30 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
31 | | - <swagger-core-version>1.6.16</swagger-core-version> |
32 | 31 | <sonar.organization>adyen</sonar.organization> |
33 | 32 | <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
| 33 | + |
| 34 | + <!-- Dependency Versions --> |
| 35 | + <!-- Compile --> |
| 36 | + <com.fasterxml.jackson-version>2.21.0</com.fasterxml.jackson-version> |
| 37 | + <gson-version>2.11.0</gson-version> |
| 38 | + <commons-codec-version>1.18.0</commons-codec-version> |
| 39 | + <gson-fire-version>1.9.0</gson-fire-version> |
| 40 | + <swagger-core-version>1.6.16</swagger-core-version> |
| 41 | + <swagger-annotations-v3-version>2.2.30</swagger-annotations-v3-version> |
| 42 | + <jakarta.ws.rs-api-version>3.1.0</jakarta.ws.rs-api-version> |
| 43 | + <jaxb-api-version>2.3.1</jaxb-api-version> |
| 44 | + <httpclient5-version>5.5</httpclient5-version> |
| 45 | + |
| 46 | + <!-- Test --> |
| 47 | + <okio-version>3.16.4</okio-version> |
| 48 | + <hamcrest-version>3.0</hamcrest-version> |
34 | 49 | <junit-jupiter-version>5.11.4</junit-jupiter-version> |
35 | 50 | <mockito-version>5.21.0</mockito-version> |
| 51 | + |
| 52 | + <!-- Plugin Versions --> |
| 53 | + <maven-compiler-plugin-version>3.14.1</maven-compiler-plugin-version> |
| 54 | + <maven-jar-plugin-version>3.5.0</maven-jar-plugin-version> |
| 55 | + <jacoco-maven-plugin-version>0.8.14</jacoco-maven-plugin-version> |
| 56 | + <maven-source-plugin-version>3.3.1</maven-source-plugin-version> |
| 57 | + <maven-javadoc-plugin-version>3.12.0</maven-javadoc-plugin-version> |
| 58 | + <maven-gpg-plugin-version>3.2.8</maven-gpg-plugin-version> |
| 59 | + <central-publishing-maven-plugin-version>0.7.0</central-publishing-maven-plugin-version> |
| 60 | + <maven-checkstyle-plugin-version>3.6.0</maven-checkstyle-plugin-version> |
| 61 | + <maven-bundle-plugin-version>5.1.9</maven-bundle-plugin-version> |
| 62 | + <spotless-maven-plugin-version>3.2.1</spotless-maven-plugin-version> |
| 63 | + <maven-surefire-plugin-version>3.5.2</maven-surefire-plugin-version> |
| 64 | + <google-java-format-version>1.34.1</google-java-format-version> |
36 | 65 | </properties> |
37 | 66 | <scm> |
38 | 67 | <connection>scm:git:git@github.com:Adyen/adyen-java-api-library.git</connection> |
|
44 | 73 | <plugin> |
45 | 74 | <groupId>org.apache.maven.plugins</groupId> |
46 | 75 | <artifactId>maven-compiler-plugin</artifactId> |
47 | | - <version>3.14.1</version> |
| 76 | + <version>${maven-compiler-plugin-version}</version> |
48 | 77 | </plugin> |
49 | 78 | <plugin> |
50 | 79 | <groupId>org.apache.maven.plugins</groupId> |
51 | 80 | <artifactId>maven-jar-plugin</artifactId> |
52 | | - <version>3.5.0</version> |
| 81 | + <version>${maven-jar-plugin-version}</version> |
53 | 82 | <configuration> |
54 | 83 | <archive> |
55 | 84 | <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
56 | 85 | </archive> |
57 | 86 | </configuration> |
58 | 87 | </plugin> |
59 | | - <plugin> |
60 | | - <groupId>org.eluder.coveralls</groupId> |
61 | | - <artifactId>coveralls-maven-plugin</artifactId> |
62 | | - <version>4.3.0</version> |
63 | | - <dependencies> |
64 | | - <dependency> |
65 | | - <groupId>javax.xml.bind</groupId> |
66 | | - <artifactId>jaxb-api</artifactId> |
67 | | - <version>2.3.1</version> |
68 | | - </dependency> |
69 | | - </dependencies> |
70 | | - </plugin> |
71 | 88 | <plugin> |
72 | 89 | <groupId>org.jacoco</groupId> |
73 | 90 | <artifactId>jacoco-maven-plugin</artifactId> |
74 | | - <version>0.8.14</version> |
| 91 | + <version>${jacoco-maven-plugin-version}</version> |
75 | 92 | <executions> |
76 | 93 | <execution> |
77 | 94 | <id>prepare-agent</id> |
|
95 | 112 | <plugin> |
96 | 113 | <groupId>org.apache.maven.plugins</groupId> |
97 | 114 | <artifactId>maven-source-plugin</artifactId> |
98 | | - <version>3.3.1</version> |
| 115 | + <version>${maven-source-plugin-version}</version> |
99 | 116 | <executions> |
100 | 117 | <execution> |
101 | 118 | <id>attach-sources</id> |
|
108 | 125 | <plugin> |
109 | 126 | <groupId>org.apache.maven.plugins</groupId> |
110 | 127 | <artifactId>maven-javadoc-plugin</artifactId> |
111 | | - <version>3.12.0</version> |
| 128 | + <version>${maven-javadoc-plugin-version}</version> |
112 | 129 | <executions> |
113 | 130 | <execution> |
114 | 131 | <id>attach-javadocs</id> |
|
121 | 138 | <plugin> |
122 | 139 | <groupId>org.apache.maven.plugins</groupId> |
123 | 140 | <artifactId>maven-gpg-plugin</artifactId> |
124 | | - <version>3.2.8</version> |
| 141 | + <version>${maven-gpg-plugin-version}</version> |
125 | 142 | <executions> |
126 | 143 | <execution> |
127 | 144 | <id>sign-artifacts</id> |
|
136 | 153 | <plugin> |
137 | 154 | <groupId>org.sonatype.central</groupId> |
138 | 155 | <artifactId>central-publishing-maven-plugin</artifactId> |
139 | | - <version>0.7.0</version> |
| 156 | + <version>${central-publishing-maven-plugin-version}</version> |
140 | 157 | <extensions>true</extensions> |
141 | 158 | <configuration> |
142 | 159 | <publishingServerId>central</publishingServerId> |
|
149 | 166 | <plugin> |
150 | 167 | <groupId>org.apache.maven.plugins</groupId> |
151 | 168 | <artifactId>maven-checkstyle-plugin</artifactId> |
152 | | - <version>3.6.0</version> |
| 169 | + <version>${maven-checkstyle-plugin-version}</version> |
153 | 170 | <configuration> |
154 | 171 | <configLocation>checkstyle.xml</configLocation> |
155 | 172 | <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation> |
|
169 | 186 | <plugin> |
170 | 187 | <groupId>org.apache.felix</groupId> |
171 | 188 | <artifactId>maven-bundle-plugin</artifactId> |
172 | | - <version>5.1.9</version> |
| 189 | + <version>${maven-bundle-plugin-version}</version> |
173 | 190 | <executions> |
174 | 191 | <execution> |
175 | 192 | <id>bundle-manifest</id> |
|
189 | 206 | <plugin> |
190 | 207 | <groupId>com.diffplug.spotless</groupId> |
191 | 208 | <artifactId>spotless-maven-plugin</artifactId> |
192 | | - <version>3.2.1</version> |
| 209 | + <version>${spotless-maven-plugin-version}</version> |
193 | 210 | <executions> |
194 | 211 | <execution> |
195 | 212 | <goals> |
|
204 | 221 | <include>src/test/java/**/*.java</include> |
205 | 222 | </includes> |
206 | 223 | <googleJavaFormat> |
207 | | - <version>1.34.1</version> |
| 224 | + <version>${google-java-format-version}</version> |
208 | 225 | <style>GOOGLE</style> |
209 | 226 | <formatJavadoc>true</formatJavadoc> |
210 | 227 | </googleJavaFormat> |
211 | | - <importOrder /> <!-- standard import order --> |
| 228 | + <importOrder/> <!-- standard import order --> |
212 | 229 | <removeUnusedImports> |
213 | 230 | <engine>google-java-format</engine> |
214 | 231 | </removeUnusedImports> |
|
218 | 235 | <plugin> |
219 | 236 | <groupId>org.apache.maven.plugins</groupId> |
220 | 237 | <artifactId>maven-surefire-plugin</artifactId> |
221 | | - <version>3.5.2</version> |
| 238 | + <version>${maven-surefire-plugin-version}</version> |
222 | 239 | </plugin> |
223 | 240 |
|
224 | 241 | </plugins> |
225 | 242 | </build> |
226 | 243 | <dependencies> |
227 | | - <dependency> |
228 | | - <groupId>com.fasterxml.jackson.datatype</groupId> |
229 | | - <artifactId>jackson-datatype-jsr310</artifactId> |
230 | | - <version>2.21.0</version> |
231 | | - </dependency> |
| 244 | + <!-- Compile --> |
232 | 245 | <dependency> |
233 | 246 | <groupId>com.fasterxml.jackson.core</groupId> |
234 | 247 | <artifactId>jackson-databind</artifactId> |
235 | | - <version>2.21.0</version> |
| 248 | + <version>${com.fasterxml.jackson-version}</version> |
| 249 | + </dependency> |
| 250 | + <dependency> |
| 251 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 252 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 253 | + <version>${com.fasterxml.jackson-version}</version> |
236 | 254 | </dependency> |
237 | 255 | <dependency> |
238 | 256 | <groupId>com.google.code.gson</groupId> |
239 | 257 | <artifactId>gson</artifactId> |
240 | | - <version>2.11.0</version> |
241 | | - <scope>compile</scope> |
| 258 | + <version>${gson-version}</version> |
242 | 259 | </dependency> |
243 | 260 | <dependency> |
244 | | - <groupId>org.apache.httpcomponents.client5</groupId> |
245 | | - <artifactId>httpclient5</artifactId> |
246 | | - <version>5.5</version> |
247 | | - <scope>compile</scope> |
| 261 | + <groupId>commons-codec</groupId> |
| 262 | + <artifactId>commons-codec</artifactId> |
| 263 | + <version>${commons-codec-version}</version> |
248 | 264 | </dependency> |
249 | | - |
250 | 265 | <dependency> |
251 | | - <groupId>org.junit.jupiter</groupId> |
252 | | - <artifactId>junit-jupiter</artifactId> |
253 | | - <version>${junit-jupiter-version}</version> |
254 | | - <scope>test</scope> |
| 266 | + <groupId>io.gsonfire</groupId> |
| 267 | + <artifactId>gson-fire</artifactId> |
| 268 | + <version>${gson-fire-version}</version> |
255 | 269 | </dependency> |
256 | 270 | <dependency> |
257 | | - <groupId>org.mockito</groupId> |
258 | | - <artifactId>mockito-junit-jupiter</artifactId> |
259 | | - <version>${mockito-version}</version> |
260 | | - <scope>test</scope> |
| 271 | + <groupId>io.swagger</groupId> |
| 272 | + <artifactId>swagger-annotations</artifactId> |
| 273 | + <version>${swagger-core-version}</version> |
261 | 274 | </dependency> |
262 | 275 | <dependency> |
263 | | - <groupId>org.mockito</groupId> |
264 | | - <artifactId>mockito-core</artifactId> |
265 | | - <version>${mockito-version}</version> |
266 | | - <scope>test</scope> |
| 276 | + <groupId>io.swagger.core.v3</groupId> |
| 277 | + <artifactId>swagger-annotations</artifactId> |
| 278 | + <version>${swagger-annotations-v3-version}</version> |
267 | 279 | </dependency> |
268 | 280 | <dependency> |
269 | | - <groupId>org.hamcrest</groupId> |
270 | | - <artifactId>hamcrest</artifactId> |
271 | | - <version>3.0</version> |
272 | | - <scope>test</scope> |
| 281 | + <groupId>jakarta.ws.rs</groupId> |
| 282 | + <artifactId>jakarta.ws.rs-api</artifactId> |
| 283 | + <version>${jakarta.ws.rs-api-version}</version> |
273 | 284 | </dependency> |
274 | 285 | <dependency> |
275 | 286 | <groupId>javax.xml.bind</groupId> |
276 | 287 | <artifactId>jaxb-api</artifactId> |
277 | | - <version>2.3.1</version> |
278 | | - <scope>compile</scope> |
| 288 | + <version>${jaxb-api-version}</version> |
279 | 289 | </dependency> |
280 | 290 | <dependency> |
281 | | - <groupId>io.swagger.core.v3</groupId> |
282 | | - <artifactId>swagger-annotations</artifactId> |
283 | | - <version>2.2.30</version> |
284 | | - <scope>compile</scope> |
| 291 | + <groupId>org.apache.httpcomponents.client5</groupId> |
| 292 | + <artifactId>httpclient5</artifactId> |
| 293 | + <version>${httpclient5-version}</version> |
285 | 294 | </dependency> |
| 295 | + |
| 296 | + <!-- Test --> |
286 | 297 | <dependency> |
287 | | - <groupId>jakarta.ws.rs</groupId> |
288 | | - <artifactId>jakarta.ws.rs-api</artifactId> |
289 | | - <version>3.1.0</version> |
290 | | - <scope>compile</scope> |
| 298 | + <groupId>com.squareup.okio</groupId> |
| 299 | + <artifactId>okio</artifactId> |
| 300 | + <version>${okio-version}</version> |
| 301 | + <scope>test</scope> |
291 | 302 | </dependency> |
292 | 303 | <dependency> |
293 | | - <groupId>io.gsonfire</groupId> |
294 | | - <artifactId>gson-fire</artifactId> |
295 | | - <version>1.9.0</version> |
296 | | - <scope>compile</scope> |
| 304 | + <groupId>org.hamcrest</groupId> |
| 305 | + <artifactId>hamcrest</artifactId> |
| 306 | + <version>${hamcrest-version}</version> |
| 307 | + <scope>test</scope> |
297 | 308 | </dependency> |
298 | 309 | <dependency> |
299 | | - <groupId>com.squareup.okio</groupId> |
300 | | - <artifactId>okio</artifactId> |
301 | | - <version>3.16.4</version> |
| 310 | + <groupId>org.junit.jupiter</groupId> |
| 311 | + <artifactId>junit-jupiter</artifactId> |
| 312 | + <version>${junit-jupiter-version}</version> |
302 | 313 | <scope>test</scope> |
303 | 314 | </dependency> |
304 | 315 | <dependency> |
305 | | - <groupId>commons-codec</groupId> |
306 | | - <artifactId>commons-codec</artifactId> |
307 | | - <version>1.18.0</version> <!-- or the latest version --> |
| 316 | + <groupId>org.mockito</groupId> |
| 317 | + <artifactId>mockito-core</artifactId> |
| 318 | + <version>${mockito-version}</version> |
| 319 | + <scope>test</scope> |
308 | 320 | </dependency> |
309 | | - <!-- Generated model annotations --> |
310 | 321 | <dependency> |
311 | | - <groupId>io.swagger</groupId> |
312 | | - <artifactId>swagger-annotations</artifactId> |
313 | | - <version>${swagger-core-version}</version> |
314 | | - <scope>compile</scope> |
| 322 | + <groupId>org.mockito</groupId> |
| 323 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 324 | + <version>${mockito-version}</version> |
| 325 | + <scope>test</scope> |
315 | 326 | </dependency> |
316 | 327 | </dependencies> |
317 | 328 | </project> |
0 commit comments