Skip to content

Commit

Permalink
Better handling of bintray credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
egulias committed Jun 8, 2015
1 parent 5ef0bba commit a363962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ build
*.iws
*.iml
.gradle
local.properties
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def siteUrl = 'https://github.com/egulias/EmailValidator4J'
def gitUrl = 'https://github.com/egulias/EmailValidator4J.git'
group = "egulias"

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
String getProperty (String name, String value) {
project.hasProperty (name)? project.property (name) : value
}


task createPom << {
Expand All @@ -49,8 +50,8 @@ task createPom << {
}

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
user = getProperty("bintray.user", "anon")
key = getProperty("bintray.apikey", "anon")

configurations = ['archives']
pkg {
Expand Down

0 comments on commit a363962

Please sign in to comment.