Skip to content

Commit

Permalink
Replace hasProperty() with findProperty(). It's the same fix as propo…
Browse files Browse the repository at this point in the history
…sed in the facebook#14810. We hit it when tried to latest gradle
  • Loading branch information
venik committed Dec 6, 2017
1 parent ec2ea58 commit af6689e
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') ? property('repositoryUrl') : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}

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

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

def configureReactNativePom(def pom) {
Expand Down

0 comments on commit af6689e

Please sign in to comment.