Skip to content

Commit 52f2be0

Browse files
authored
revert env (#413)
1 parent 8cf3aa5 commit 52f2be0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def isDevBuild
3636
def isSnapshotBuild
3737
def isReleaseBuild
3838
def sonatypeRepositoryUrl
39-
def mavenCentralUsername = System.getenv('MAVEN_CENTRAL_USERNAME')
40-
def mavenCentralPassword = System.getenv('MAVEN_CENTRAL_PASSWORD')
39+
def sonatypeUsername = System.getenv('SONATYPE_USERNAME')
40+
def sonatypePassword = System.getenv('SONATYPE_PASSWORD')
4141
def protoDepsPath = "proto_deps"
4242

4343
if (hasProperty("release")) {
@@ -154,8 +154,8 @@ publishing {
154154
maven {
155155
url = sonatypeRepositoryUrl
156156
credentials {
157-
username = mavenCentralUsername
158-
password = mavenCentralPassword
157+
username = sonatypeUsername
158+
password = sonatypePassword
159159
}
160160
}
161161
}

script/prepare_gradle_properties.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ sonatypeUsername=${SONATYPE_USERNAME}
2222
sonatypePassword=${SONATYPE_PASSWORD}
2323
nexusUsername=${SONATYPE_USERNAME}
2424
nexusPassword=${SONATYPE_PASSWORD}
25-
mavenCentralUsername=${MAVEN_CENTRAL_USERNAME}
26-
mavenCentralPassword=${MAVEN_CENTRAL_PASSWORD}
25+
mavenCentralUsername=${SONATYPE_USERNAME}
26+
mavenCentralPassword=${SONATYPE_PASSWORD}
2727
EOF

0 commit comments

Comments
 (0)