Skip to content

Commit

Permalink
#1 🔧 fixing sonatype repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ryan-ashcraft committed Apr 26, 2024
1 parent 3c962dd commit d34ab2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git checkout -b ${{ inputs.releaseVersion }}-release
mvn -B release:clean release:prepare release:perform -Possrh-release -DreleaseVersion=${{ inputs.releaseVersion }} -DdevelopmentVersion=${{ inputs.developmentVersion }}
mvn release:update-versions -DdevelopmentVersion=${{ inputs.developmentVersion }}
mvn clean install
mvn scm:checkin -Dmessage=":arrow_up: push example modules to version ${{ inputs.developmentVersion }}"
mvn -B release:prepare release:perform -Possrh-release -DreleaseVersion=${{ inputs.releaseVersion }} -DdevelopmentVersion=${{ inputs.developmentVersion }}
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_USER }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_REPO_TOKEN_KEY }}
Expand Down
11 changes: 8 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/releases/</url>
<url>https://oss.sonatype.org/content/repositories/releases/</url>
</repository>
</distributionManagement>

Expand Down Expand Up @@ -193,7 +193,7 @@
<version>${version.nexus.staging.plugin}</version>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- Automatically release staging repository and make deployed artifacts available on
Maven Central. This mitigates the need to manually log into the OSSRH Nexus instance
and release the staging repository -->
Expand Down Expand Up @@ -255,6 +255,11 @@
<id>ossrh-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down

0 comments on commit d34ab2d

Please sign in to comment.