Skip to content

Commit 9649d0e

Browse files
author
Nikolay Kochetkov
committed
Sonatype publishing update (take 2)
1 parent e8271a9 commit 9649d0e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ tasks.register('displayVersion', Task) {
7070
}
7171
}
7272

73-
def sonatypeUsername = ext['sonatypeUsername']
74-
def sonatypePassword = ext['sonatypePassword']
73+
def ossrhUsername = ext['ossrhUsername']
74+
def ossrhPassword = ext['ossrhPassword']
7575

7676
nexusPublishing {
7777
repositories {
7878
sonatype {
7979
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
8080
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
81-
username=sonatypeUsername
82-
password=sonatypePassword
81+
username=ossrhUsername
82+
password=ossrhPassword
8383
}
8484
}
8585
}

gradle/maven-publish-config.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (secretPropsFile.exists()) {
2929
def getFromEnv() {
3030
ext["signingKey"] = System.getenv('SIGNING_KEY')
3131
ext["signingPassword"] = System.getenv('SIGNING_PASSWORD')
32-
ext["sonatypeUsername"] = System.getenv('NEXUS_USERNAME')
33-
ext["sonatypePassword"] = System.getenv('NEXUS_PASSWORD')
32+
ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME')
33+
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
3434
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
3535
}

0 commit comments

Comments
 (0)