|
20 | 20 | <maven.compiler.source>8</maven.compiler.source> |
21 | 21 | <maven.compiler.target>8</maven.compiler.target> |
22 | 22 |
|
23 | | - <checkstyle.version>10.25.0</checkstyle.version> |
| 23 | + <!-- test dependencies --> |
| 24 | + <junit.version>5.13.4</junit.version> |
| 25 | + <commons-io.version>2.20.0</commons-io.version> |
| 26 | + |
| 27 | + <!-- quality --> |
| 28 | + <checkstyle.version>10.26.1</checkstyle.version> |
24 | 29 | <dependencycheck.version>10.0.4</dependencycheck.version> |
| 30 | + |
| 31 | + <!-- plugins --> |
| 32 | + <central-publishing-plugin.version>0.8.0</central-publishing-plugin.version> |
| 33 | + <checkstyle-plugin.version>3.6.0</checkstyle-plugin.version> |
| 34 | + <gpg-plugin.version>3.2.8</gpg-plugin.version> |
| 35 | + <enforcer-plugin.version>3.6.1</enforcer-plugin.version> |
25 | 36 | </properties> |
26 | 37 |
|
27 | 38 | <build> |
28 | 39 | <plugins> |
29 | 40 | <plugin> |
30 | 41 | <groupId>org.apache.maven.plugins</groupId> |
31 | 42 | <artifactId>maven-enforcer-plugin</artifactId> |
32 | | - <version>3.5.0</version> |
| 43 | + <version>${enforcer-plugin.version}</version> |
33 | 44 | <executions> |
34 | 45 | <execution> |
35 | 46 | <id>enforce-maven</id> |
|
49 | 60 | </execution> |
50 | 61 | </executions> |
51 | 62 | </plugin> |
| 63 | + <plugin> |
| 64 | + <groupId>org.sonatype.central</groupId> |
| 65 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 66 | + <version>${central-publishing-plugin.version}</version> |
| 67 | + <extensions>true</extensions> |
| 68 | + <configuration> |
| 69 | + <publishingServerId>central</publishingServerId> |
| 70 | + </configuration> |
| 71 | + </plugin> |
52 | 72 | <plugin> |
53 | 73 | <groupId>org.owasp</groupId> |
54 | 74 | <artifactId>dependency-check-maven</artifactId> |
|
149 | 169 | <plugin> |
150 | 170 | <groupId>org.apache.maven.plugins</groupId> |
151 | 171 | <artifactId>maven-checkstyle-plugin</artifactId> |
152 | | - <version>3.6.0</version> |
| 172 | + <version>${checkstyle-plugin.version}</version> |
153 | 173 | <configuration> |
154 | 174 | <configLocation>checkstyle.xml</configLocation> |
155 | 175 | <suppressionsLocation>checkstyle_suppressions.xml</suppressionsLocation> |
|
214 | 234 | <plugin> |
215 | 235 | <groupId>org.apache.maven.plugins</groupId> |
216 | 236 | <artifactId>maven-gpg-plugin</artifactId> |
217 | | - <version>3.2.7</version> |
| 237 | + <version>${gpg-plugin.version}</version> |
218 | 238 | <executions> |
219 | 239 | <execution> |
220 | 240 | <phase>verify</phase> |
|
322 | 342 | <dependency> |
323 | 343 | <groupId>org.junit.jupiter</groupId> |
324 | 344 | <artifactId>junit-jupiter-engine</artifactId> |
325 | | - <version>5.13.0</version> |
| 345 | + <version>${junit.version}</version> |
326 | 346 | <scope>test</scope> |
327 | 347 | </dependency> |
328 | 348 | <dependency> |
329 | 349 | <groupId>commons-io</groupId> |
330 | 350 | <artifactId>commons-io</artifactId> |
331 | | - <version>2.19.0</version> |
| 351 | + <version>${commons-io.version}</version> |
332 | 352 | <scope>test</scope> |
333 | 353 | </dependency> |
334 | 354 | </dependencies> |
335 | | - <distributionManagement> |
336 | | - <snapshotRepository> |
337 | | - <id>s01-sonatype-nexus-snapshots</id> |
338 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
339 | | - </snapshotRepository> |
340 | | - <repository> |
341 | | - <id>s01-sonatype-nexus-staging</id> |
342 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> |
343 | | - </repository> |
344 | | - </distributionManagement> |
| 355 | + |
| 356 | + <!-- for snapshots of our dependencies --> |
345 | 357 | <repositories> |
346 | 358 | <repository> |
347 | | - <snapshots> |
348 | | - <enabled>true</enabled> |
349 | | - <updatePolicy>always</updatePolicy> |
350 | | - </snapshots> |
| 359 | + <name>Central Portal Snapshots</name> |
| 360 | + <id>central-portal-snapshots</id> |
| 361 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
351 | 362 | <releases> |
352 | 363 | <enabled>false</enabled> |
353 | 364 | </releases> |
354 | | - <id>OSS Sonatype snapshots</id> |
355 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> |
| 365 | + <snapshots> |
| 366 | + <enabled>true</enabled> |
| 367 | + </snapshots> |
356 | 368 | </repository> |
357 | 369 | </repositories> |
| 370 | + |
358 | 371 | </project> |
0 commit comments