Skip to content

Commit

Permalink
Add fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Topper committed Jul 29, 2019
1 parent f64d4ba commit 00e624a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ limitations under the License.

version = '1.1.0'

def sonatypeUsernameWithFallback = project.ext.properties.sonatypeUsername
def sonatypePasswordWithFallback = project.ext.properties.sonatypePassword

buildscript {
repositories {
mavenCentral()
Expand Down Expand Up @@ -94,8 +97,8 @@ publishing {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
username sonatypeUsernameWithFallback
password sonatypePasswordWithFallback
}
}
}
Expand Down

0 comments on commit 00e624a

Please sign in to comment.