Skip to content

Commit 7941d66

Browse files
committed
Switch to Sonatype central plugin
1 parent dabcf39 commit 7941d66

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

pom.xml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<?xml version="1.0" ?>
22
<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/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>org.sonatype.oss</groupId>
6-
<artifactId>oss-parent</artifactId>
7-
<version>7</version>
8-
</parent>
9-
104
<groupId>com.github.jnr</groupId>
115
<artifactId>jnr-posix</artifactId>
126
<packaging>jar</packaging>
@@ -163,6 +157,35 @@
163157
<artifactId>maven-compiler-plugin</artifactId>
164158
<version>3.8.1</version>
165159
</plugin>
160+
<plugin>
161+
<groupId>org.sonatype.central</groupId>
162+
<artifactId>central-publishing-maven-plugin</artifactId>
163+
<version>0.7.0</version>
164+
<extensions>true</extensions>
165+
<configuration>
166+
<publishingServerId>central</publishingServerId>
167+
</configuration>
168+
</plugin>
169+
<plugin>
170+
<groupId>org.apache.maven.plugins</groupId>
171+
<artifactId>maven-gpg-plugin</artifactId>
172+
<version>3.1.0</version>
173+
<executions>
174+
<execution>
175+
<id>sign-artifacts</id>
176+
<phase>verify</phase>
177+
<goals>
178+
<goal>sign</goal>
179+
</goals>
180+
</execution>
181+
</executions>
182+
<configuration>
183+
<gpgArguments>
184+
<gpgArgument>--pinentry-mode</gpgArgument>
185+
<gpgArgument>loopback</gpgArgument>
186+
</gpgArguments>
187+
</configuration>
188+
</plugin>
166189
</plugins>
167190
</build>
168191
<profiles>

0 commit comments

Comments
 (0)