Skip to content

Commit

Permalink
Try sonatype release
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Apr 3, 2020
1 parent ae8533f commit 9a554c1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
Expand Down Expand Up @@ -83,6 +84,17 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down
21 changes: 21 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@
</repository>
</repositories>
</profile>
<profile>
<id>ossrh</id>
<repositories>
<repository>
<id>ossrh</id>
<name>Sonatype kezhenxu94 Apache Maven Packages</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
</profiles>

<servers>
Expand All @@ -31,5 +47,10 @@
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>ossrh</id>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit 9a554c1

Please sign in to comment.