Skip to content

Commit ab83e16

Browse files
committed
Updates release tooling for maven central
1 parent b0c6e84 commit ab83e16

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

build-resources/pom.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
<properties>
2828
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29+
<gpg.keyname/>
2930
</properties>
3031

3132
<scm>
@@ -79,26 +80,29 @@
7980
<plugin>
8081
<groupId>org.apache.maven.plugins</groupId>
8182
<artifactId>maven-gpg-plugin</artifactId>
82-
<version>3.0.1</version>
83+
<version>3.2.7</version>
8384
<executions>
8485
<execution>
8586
<id>sign-artifacts</id>
8687
<phase>verify</phase>
8788
<goals>
8889
<goal>sign</goal>
8990
</goals>
91+
<configuration>
92+
<keyname>${gpg.keyname}</keyname>
93+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
94+
</configuration>
9095
</execution>
9196
</executions>
9297
</plugin>
9398
<plugin>
94-
<groupId>org.sonatype.plugins</groupId>
95-
<artifactId>nexus-staging-maven-plugin</artifactId>
96-
<version>1.6.13</version>
99+
<groupId>org.sonatype.central</groupId>
100+
<artifactId>central-publishing-maven-plugin</artifactId>
101+
<version>0.8.0</version>
97102
<extensions>true</extensions>
98103
<configuration>
99-
<serverId>graphfoundation-releases</serverId>
100-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
101-
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
104+
<publishingServerId>graphfoundation-releases</publishingServerId>
105+
<autoPublish>false</autoPublish>
102106
</configuration>
103107
</plugin>
104108
</plugins>

pom.xml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<jetty.version>9.4.51.v20230217</jetty.version>
110110
<findbugs.version>3.0.1</findbugs.version>
111111
<git.commit>unknown-commit</git.commit>
112+
<gpg.keyname/>
112113
<forkCounts>0</forkCounts>
113114
<maven.build.timestamp.format>yyMMddHHmmssSSS</maven.build.timestamp.format>
114115

@@ -998,6 +999,10 @@
998999
<goals>
9991000
<goal>sign</goal>
10001001
</goals>
1002+
<configuration>
1003+
<keyname>${gpg.keyname}</keyname>
1004+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
1005+
</configuration>
10011006
</execution>
10021007
</executions>
10031008
</plugin>
@@ -1012,17 +1017,6 @@
10121017
<waitUntil>published</waitUntil>
10131018
</configuration>
10141019
</plugin>
1015-
<plugin>
1016-
<groupId>org.sonatype.plugins</groupId>
1017-
<artifactId>nexus-staging-maven-plugin</artifactId>
1018-
<version>1.6.13</version>
1019-
<extensions>true</extensions>
1020-
<configuration>
1021-
<serverId>graphfoundation-releases</serverId>
1022-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1023-
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
1024-
</configuration>
1025-
</plugin>
10261020
</plugins>
10271021
</build>
10281022
</profile>

0 commit comments

Comments
 (0)