Skip to content

Commit da07a70

Browse files
authored
Merge pull request #408 from PerimeterX/migrate-to-central-publishing-maven-plugin
migrate-to-central-publishing-maven-plugin
2 parents 799acbc + d760228 commit da07a70

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ jobs:
5151
distribution: 'adopt'
5252

5353
- name: Import GPG key
54-
run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
54+
run: echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import --passphrase "$GPG_PASSPHRASE"
5555
env:
5656
# To generate a new GPG key run the following command in your local terminal:
5757
# gpg --export-secret-keys -a "<key_id>" | base64
5858
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
59+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5960
- name: Log GPG keys
6061
run: gpg --list-secret-keys --keyid-format LONG
6162

deploy/mvnsettings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<settings>
22
<servers>
33
<server>
4-
<id>ossrh</id>
4+
<id>central</id>
55
<username>${env.OSSRH_JIRA_USERNAME}</username>
66
<password>${env.OSSRH_JIRA_PASSWORD}</password>
77
</server>

pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,13 @@
283283
</executions>
284284
</plugin>
285285
<plugin>
286-
<groupId>org.sonatype.plugins</groupId>
287-
<artifactId>nexus-staging-maven-plugin</artifactId>
288-
<version>1.6.8</version>
286+
<groupId>org.sonatype.central</groupId>
287+
<artifactId>central-publishing-maven-plugin</artifactId>
288+
<version>0.8.0</version>
289289
<extensions>true</extensions>
290290
<configuration>
291-
<serverId>ossrh</serverId>
292-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
293-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
291+
<publishingServerId>central</publishingServerId>
292+
<autoPublish>true</autoPublish>
294293
</configuration>
295294
</plugin>
296295
<plugin>

0 commit comments

Comments
 (0)