Skip to content

Commit

Permalink
Update sonatype repo ids
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 5, 2024
1 parent 44801b6 commit bd57e32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
cache: 'maven'
server-id: sonatype-nexus-snapshots
server-id: sonatype-nexus-snapshots-new
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
Expand All @@ -47,7 +47,7 @@ jobs:
run: ./mvnw -B -q -ff -ntp verify
- name: Extract project Maven version
id: projectVersion
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
- name: Deploy snapshot
if: ${{ matrix.release_build && github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
env:
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
-->
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<id>sonatype-nexus-snapshots-new</id>
<name>Sonatype Nexus Snapshots (new)</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>sonatype-old-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<id>sonatype-nexus-snapshots-old</id>
<name>Sonatype Nexus Snapshots (old)</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
Expand Down

0 comments on commit bd57e32

Please sign in to comment.