Skip to content

Commit

Permalink
Fix Could not get unknown property 'repositoryUrl' for project ':Reac…
Browse files Browse the repository at this point in the history
…tAndroid' using gradle 3.1.2.

Fixes facebook#14810
  • Loading branch information
Justin Stanley committed Dec 14, 2018
1 parent 0a48e0a commit 789fb5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReactAndroid/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ def isReleaseBuild() {
}

def getRepositoryUrl() {
return hasProperty('repositoryUrl') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
return findProperty('repositoryUrl') != null ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}

def getRepositoryUsername() {
return hasProperty('repositoryUsername') ? property('repositoryUsername') : ''
return findProperty('repositoryUsername') != null ? property('repositoryUsername') : ''
}

def getRepositoryPassword() {
return hasProperty('repositoryPassword') ? property('repositoryPassword') : ''
return findProperty('repositoryPassword') != null ? property('repositoryPassword') : ''
}

def configureReactNativePom(def pom) {
Expand Down

0 comments on commit 789fb5a

Please sign in to comment.