Skip to content

Commit 68cb0b7

Browse files
authored
Merge pull request #13 from emnify/fix-sonar
fix: update Sonatype OSSRH URL and upgrade GitHub Actions to v4
2 parents 2d38358 + 1fe7e86 commit 68cb0b7

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/sonar.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
15-
- uses: actions/setup-java@v1
15+
- uses: actions/setup-java@v4
1616
with:
17+
distribution: temurin
1718
java-version: 11
1819
- name: Cache SonarCloud packages
19-
uses: actions/cache@v1
20+
uses: actions/cache@v4
2021
with:
2122
path: ~/.sonar/cache
2223
key: ${{ runner.os }}-sonar
2324
restore-keys: ${{ runner.os }}-sonar
2425
- name: Cache Maven packages
25-
uses: actions/cache@v1
26+
uses: actions/cache@v4
2627
with:
2728
path: ~/.m2
2829
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,11 @@
311311
<extensions>true</extensions>
312312
<configuration>
313313
<serverId>ossrh</serverId>
314-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
314+
<!-- Legacy OSSRH (s01.oss.sonatype.org) was retired and now
315+
returns 404. This is Sonatype's OSSRH Staging API
316+
compatibility endpoint, which keeps this plugin working
317+
against the Central Portal. -->
318+
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
315319
<autoReleaseAfterClose>true</autoReleaseAfterClose>
316320
</configuration>
317321
</plugin>

0 commit comments

Comments
 (0)