Skip to content

Commit

Permalink
If local.properties does not exist, return
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusja committed Jan 26, 2017
1 parent 57e22cd commit 24be0f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ artifacts {
}

// Bintray
File file = project.rootProject.file('local.properties')
if(!file.exists()) {
return
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
properties.load(file.newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
Expand Down

0 comments on commit 24be0f6

Please sign in to comment.