Skip to content

Commit e73243c

Browse files
nexus plugin 1 more attempt
1 parent 0821ad5 commit e73243c

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/publishing2sonatype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
sed -i -e 's|.*sonatypePassword.*| password = "${{ secrets.SPASSWORD }}"|' ./build.gradle
3737
- name: Sonatype Publish
3838
run: |
39-
echo "myNexusUsername=${{ secrets.SUSER }}" >> ./gradle.properties
40-
echo "myNexusPassword=${{ secrets.SPASSWORD }}" >> ./gradle.properties
39+
ORG_GRADLE_PROJECT_sonatypeUsername=$(echo "sonatypeUsername=${{ secrets.SUSER }}")
40+
ORG_GRADLE_PROJECT_sonatypePassword=$(echo "sonatypePassword=${{ secrets.SPASSWORD }}")
4141
./gradlew publishToSonatype
4242
# ./gradlew -S releaseSonatypeStagingRepository
4343
# BEARER=$(printf "${{ secrets.SUSER }}:${{ secrets.SPASSWORD }}" | base64)

build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,7 @@ nexusPublishing {
186186
repositories {
187187
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
188188
sonatype {
189-
// nexusUrl = uri("https://your-server.com/staging")
190189
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
191-
// username = "${sonatypeUsername}" // defaults to project.properties["myNexusUsername"]
192-
// password = "${sonatypePassword}" // defaults to project.properties["myNexusPassword"]
193-
username = "ZxC3zG"
194-
password = "O5zzMmghqUpz5ggAsob74s4qKDKvjE6zW"
195190
}
196191
}
197192
}

0 commit comments

Comments
 (0)