Skip to content

Commit c689b24

Browse files
committed
central-publishing and pom update
1 parent 7169910 commit c689b24

File tree

1 file changed

+38
-24
lines changed

1 file changed

+38
-24
lines changed

pom.xml

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,31 @@
2020
<maven.compiler.source>8</maven.compiler.source>
2121
<maven.compiler.target>8</maven.compiler.target>
2222

23-
<checkstyle.version>10.25.0</checkstyle.version>
23+
<!-- test dependencies -->
24+
<junit.version>5.13.4</junit.version>
25+
26+
<!-- quality -->
27+
<checkstyle.version>10.26.1</checkstyle.version>
2428
<spotbugs.version>4.9.3</spotbugs.version>
25-
<pmd.version>7.14.0</pmd.version>
29+
<pmd.version>7.16.0</pmd.version>
2630
<spotless.version>2.38.0</spotless.version>
2731
<dependencycheck.version>10.0.4</dependencycheck.version>
32+
33+
<!-- plugins -->
34+
<central-publishing-plugin.version>0.8.0</central-publishing-plugin.version>
35+
<pmd-plugin.version>3.27.0</pmd-plugin.version>
36+
<spotbugs-plugin.version>4.9.3.2</spotbugs-plugin.version>
37+
<gpg-plugin.version>3.2.8</gpg-plugin.version>
38+
<enforcer-plugin.version>3.6.1</enforcer-plugin.version>
39+
<changes-plugin.version>2.12.1</changes-plugin.version>
2840
</properties>
2941

3042
<build>
3143
<plugins>
3244
<plugin>
3345
<groupId>org.apache.maven.plugins</groupId>
3446
<artifactId>maven-enforcer-plugin</artifactId>
35-
<version>3.5.0</version>
47+
<version>${enforcer-plugin.version}</version>
3648
<executions>
3749
<execution>
3850
<id>enforce-maven</id>
@@ -133,7 +145,7 @@
133145
<plugin>
134146
<groupId>org.apache.maven.plugins</groupId>
135147
<artifactId>maven-gpg-plugin</artifactId>
136-
<version>3.2.7</version>
148+
<version>${gpg-plugin.version}</version>
137149
<executions>
138150
<execution>
139151
<phase>verify</phase>
@@ -185,7 +197,7 @@
185197
<plugin>
186198
<groupId>com.github.spotbugs</groupId>
187199
<artifactId>spotbugs-maven-plugin</artifactId>
188-
<version>4.9.3.0</version>
200+
<version>${spotbugs-plugin.version}</version>
189201
<dependencies>
190202
<dependency>
191203
<groupId>com.github.spotbugs</groupId>
@@ -200,7 +212,7 @@
200212
<plugin>
201213
<groupId>org.apache.maven.plugins</groupId>
202214
<artifactId>maven-pmd-plugin</artifactId>
203-
<version>3.26.0</version>
215+
<version>${pmd-plugin.version}</version>
204216
<dependencies>
205217
<dependency>
206218
<groupId>net.sourceforge.pmd</groupId>
@@ -219,6 +231,15 @@
219231
</rulesets>
220232
</configuration>
221233
</plugin>
234+
<plugin>
235+
<groupId>org.sonatype.central</groupId>
236+
<artifactId>central-publishing-maven-plugin</artifactId>
237+
<version>${central-publishing-plugin.version}</version>
238+
<extensions>true</extensions>
239+
<configuration>
240+
<publishingServerId>central</publishingServerId>
241+
</configuration>
242+
</plugin>
222243
<plugin>
223244
<groupId>org.owasp</groupId>
224245
<artifactId>dependency-check-maven</artifactId>
@@ -255,7 +276,7 @@
255276
<plugin>
256277
<groupId>org.apache.maven.plugins</groupId>
257278
<artifactId>maven-changes-plugin</artifactId>
258-
<version>2.12.1</version>
279+
<version>${changes-plugin.version}</version>
259280
<reportSets>
260281
<reportSet>
261282
<reports>
@@ -313,31 +334,24 @@
313334
<dependency>
314335
<groupId>org.junit.jupiter</groupId>
315336
<artifactId>junit-jupiter-engine</artifactId>
316-
<version>5.11.4</version>
337+
<version>${junit.version}</version>
317338
<scope>test</scope>
318339
</dependency>
319340
</dependencies>
320-
<distributionManagement>
321-
<snapshotRepository>
322-
<id>s01-sonatype-nexus-snapshots</id>
323-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
324-
</snapshotRepository>
325-
<repository>
326-
<id>s01-sonatype-nexus-staging</id>
327-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
328-
</repository>
329-
</distributionManagement>
341+
342+
<!-- for snapshots of our dependencies -->
330343
<repositories>
331344
<repository>
332-
<snapshots>
333-
<enabled>true</enabled>
334-
<updatePolicy>always</updatePolicy>
335-
</snapshots>
345+
<name>Central Portal Snapshots</name>
346+
<id>central-portal-snapshots</id>
347+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
336348
<releases>
337349
<enabled>false</enabled>
338350
</releases>
339-
<id>OSS Sonatype snapshots</id>
340-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
351+
<snapshots>
352+
<enabled>true</enabled>
353+
</snapshots>
341354
</repository>
342355
</repositories>
356+
343357
</project>

0 commit comments

Comments
 (0)