Skip to content

Commit

Permalink
update plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyjiajia committed Aug 30, 2016
1 parent 94ece48 commit 039ccee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ plugindev {
}

// we read the config infomation from "local.properties"
def Properties localProp() {
def Properties loadLocalProp() {
def versionFile = new File(project.rootDir, 'local.properties')
def version = new Properties()
def stream
Expand All @@ -64,8 +64,9 @@ def Properties localProp() {
return version
}

def BINTRAY_USER = localProp()['BINTRAY_USER']
def BINTRAY_API_KEY = localProp()['BINTRAY_API_KEY']
def localProp = loadLocalProp()
def BINTRAY_USER = localProp['BINTRAY_USER']
def BINTRAY_API_KEY = localProp['BINTRAY_API_KEY']

// If you want to upload this, make sure to set BINTRAY_USER and BINTRAY_API_KEY in local.properties
if (BINTRAY_USER && BINTRAY_API_KEY) {
Expand Down

0 comments on commit 039ccee

Please sign in to comment.