Skip to content

Commit

Permalink
release config
Browse files Browse the repository at this point in the history
  • Loading branch information
supervate committed Apr 30, 2024
1 parent 0d2d256 commit 273dda2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Release Maven Central
uses: samuelmeuli/[email protected]
with:
server_id: ossrh
server_id: central
gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
Expand Down
15 changes: 9 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<maven-compiler.version>3.12.0</maven-compiler.version>
<compiler-release.version>8</compiler-release.version>
<jackson.version>2.17.0</jackson.version>
<maven-central-publish-plugin.version>0.4.0</maven-central-publish-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -139,14 +140,16 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${maven-central-publish-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
<!--<waitUntil>published</waitUntil>
<waitMaxTime>1800</waitMaxTime>-->
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 273dda2

Please sign in to comment.