Skip to content

Commit

Permalink
Migrate repo from ossrh to central (#20)
Browse files Browse the repository at this point in the history
* Fix the version

* Migrate ossrh to central
  • Loading branch information
hiwakaba authored Nov 15, 2024
1 parent 3cc103e commit 04d601b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with: # running setup-java again overwrites the settings.xml
distribution: 'zulu'
java-version: ${{ matrix.java }}
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
Expand Down
8 changes: 0 additions & 8 deletions k2hash/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@
<url>https://github.com/yahoojapan/k2hash_java</url>
</scm>

<distributionManagement>
<repository>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<reporting>
<plugins>
<plugin>
Expand Down
27 changes: 9 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@
<url>https://github.com/yahoojapan/k2hash_java</url>
</scm>

<distributionManagement>
<repository>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<reporting>
<plugins>
<plugin>
Expand Down Expand Up @@ -99,6 +91,7 @@
<checkstyle.configLocation>checkstyle.xml</checkstyle.configLocation>
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<central-publishing-maven-plugin.version>0.6.0</central-publishing-maven-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -229,17 +222,15 @@
</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://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 04d601b

Please sign in to comment.