Skip to content

Commit 0318c5f

Browse files
committed
central publishing and pom
1 parent 8b428ce commit 0318c5f

File tree

1 file changed

+35
-22
lines changed

1 file changed

+35
-22
lines changed

pom.xml

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,27 @@
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+
<commons-io.version>2.20.0</commons-io.version>
26+
27+
<!-- quality -->
28+
<checkstyle.version>10.26.1</checkstyle.version>
2429
<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>
2536
</properties>
2637

2738
<build>
2839
<plugins>
2940
<plugin>
3041
<groupId>org.apache.maven.plugins</groupId>
3142
<artifactId>maven-enforcer-plugin</artifactId>
32-
<version>3.5.0</version>
43+
<version>${enforcer-plugin.version}</version>
3344
<executions>
3445
<execution>
3546
<id>enforce-maven</id>
@@ -49,6 +60,15 @@
4960
</execution>
5061
</executions>
5162
</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>
5272
<plugin>
5373
<groupId>org.owasp</groupId>
5474
<artifactId>dependency-check-maven</artifactId>
@@ -149,7 +169,7 @@
149169
<plugin>
150170
<groupId>org.apache.maven.plugins</groupId>
151171
<artifactId>maven-checkstyle-plugin</artifactId>
152-
<version>3.6.0</version>
172+
<version>${checkstyle-plugin.version}</version>
153173
<configuration>
154174
<configLocation>checkstyle.xml</configLocation>
155175
<suppressionsLocation>checkstyle_suppressions.xml</suppressionsLocation>
@@ -214,7 +234,7 @@
214234
<plugin>
215235
<groupId>org.apache.maven.plugins</groupId>
216236
<artifactId>maven-gpg-plugin</artifactId>
217-
<version>3.2.7</version>
237+
<version>${gpg-plugin.version}</version>
218238
<executions>
219239
<execution>
220240
<phase>verify</phase>
@@ -322,37 +342,30 @@
322342
<dependency>
323343
<groupId>org.junit.jupiter</groupId>
324344
<artifactId>junit-jupiter-engine</artifactId>
325-
<version>5.13.0</version>
345+
<version>${junit.version}</version>
326346
<scope>test</scope>
327347
</dependency>
328348
<dependency>
329349
<groupId>commons-io</groupId>
330350
<artifactId>commons-io</artifactId>
331-
<version>2.19.0</version>
351+
<version>${commons-io.version}</version>
332352
<scope>test</scope>
333353
</dependency>
334354
</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 -->
345357
<repositories>
346358
<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>
351362
<releases>
352363
<enabled>false</enabled>
353364
</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>
356368
</repository>
357369
</repositories>
370+
358371
</project>

0 commit comments

Comments
 (0)