Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0b35d47

Browse files
authored
Merge pull request #166 from jdaugherty/6.0.x
Fix publishing task to use environment variables in action
2 parents 780a06a + 2174b1e commit 0b35d47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ ext.set('isReleaseVersion', !isSnapshot)
1212

1313
if(isReleaseVersion) {
1414
nexusPublishing {
15-
String nexusUser = project.findProperty('sonatypeOssUsername')
16-
String nexusPass = project.findProperty('sonatypeOssPassword')
17-
String nexusStagingProfileId = project.findProperty('sonatypeOssStagingProfileId')
15+
String nexusUser = System.getenv("SONATYPE_USERNAME")
16+
String nexusPass = System.getenv("SONATYPE_PASSWORD")
17+
String nexusStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID")
1818
repositories {
1919
sonatype {
2020
nexusUrl = uri('https://s01.oss.sonatype.org/service/local/')

0 commit comments

Comments
 (0)