Skip to content

Commit 77e0cf8

Browse files
committed
Configure gpg plugin and nexus-staging plugin
1 parent 6bbfb99 commit 77e0cf8

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

pom.xml

+17-24
Original file line numberDiff line numberDiff line change
@@ -245,35 +245,15 @@
245245
</profile>
246246

247247
<profile>
248-
<id>publish-distr</id>
249-
<activation>
250-
<activeByDefault>false</activeByDefault>
251-
</activation>
252-
<build>
253-
<plugins>
254-
<plugin>
255-
<artifactId>maven-surefire-plugin</artifactId>
256-
<configuration>
257-
<skipTests>true</skipTests>
258-
</configuration>
259-
</plugin>
260-
</plugins>
261-
</build>
262-
</profile>
263-
264-
<profile>
265-
<id>release-sign-artifacts</id>
266-
<activation>
267-
<property>
268-
<name>performRelease</name>
269-
<value>true</value>
270-
</property>
271-
</activation>
248+
<id>release</id>
272249
<build>
273250
<plugins>
274251
<plugin>
275252
<artifactId>maven-gpg-plugin</artifactId>
276253
<version>3.2.4</version>
254+
<configuration>
255+
<keyname>B1606F22</keyname>
256+
</configuration>
277257
<executions>
278258
<execution>
279259
<id>sign-artifacts</id>
@@ -284,6 +264,19 @@
284264
</execution>
285265
</executions>
286266
</plugin>
267+
268+
<plugin>
269+
<groupId>org.sonatype.plugins</groupId>
270+
<artifactId>nexus-staging-maven-plugin</artifactId>
271+
<version>1.7.0</version>
272+
<extensions>true</extensions>
273+
<configuration>
274+
<serverId>sonatype-nexus-staging</serverId>
275+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
276+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
277+
<autoDropAfterRelease>true</autoDropAfterRelease>
278+
</configuration>
279+
</plugin>
287280
</plugins>
288281
</build>
289282
</profile>

0 commit comments

Comments
 (0)