Skip to content

Commit

Permalink
Maven

Browse files Browse the repository at this point in the history
  • Loading branch information
Jaci Brunning authored and Jaci Brunning committed Mar 10, 2015
1 parent 36e954f commit e48abcf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,15 @@ artifacts {
archives toast
}

ext.mavenProps = file "../maven.properties"
mavenProps.withReader {
def prop = new Properties()
prop.load(it)
project.ext.mavenProps = new ConfigSlurper().parse prop
try {
ext.mavenProps = file "../maven.properties"
mavenProps.withReader {
def prop = new Properties()
prop.load(it)
project.ext.mavenProps = new ConfigSlurper().parse prop
}
} catch (Exception e) {
println "Could not load Maven Properties... You are not a developer!"
}

uploadArchives {
Expand Down

0 comments on commit e48abcf

Please sign in to comment.