Skip to content

Commit 71551de

Browse files
committed
Update release for Maven Central Portal
1 parent afbfaa8 commit 71551de

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
run: ./gradlew -Pversion=$REF_NAME setLibraryVersion -Dbuild.version="${{ steps.vars.outputs.tag }}" clean publishToSonatype closeAndReleaseSonatypeStagingRepository
6161
env:
6262
GITHUB_TAG: ${{ steps.vars.outputs.tag }}
63-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
64-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
63+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
64+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
6565
- name: Slack notification
6666
if: success() # only when previous step succeeds
6767
env:

gradle-scripts/nexus-publish.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
nexusPublishing {
22
repositories {
33
sonatype {
4-
username = System.getenv("MAVEN_USERNAME")
5-
password = System.getenv("MAVEN_PASSWORD")
4+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
5+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
6+
username = System.getenv('SONATYPE_USERNAME')
7+
password = System.getenv('SONATYPE_PASSWORD')
68
}
79
}
8-
}
10+
}

0 commit comments

Comments
 (0)