Skip to content

Commit

Permalink
avoid build failure when gradle.properties file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Jul 15, 2014
1 parent 5d683f6 commit d2a76e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ android {
uploadArchives {
repositories {
mavenDeployer {
repository(url: project.repository)
def repo_url = ""
if (project.hasProperty("repository")) {
repo_url = project.repository
}
repository(url: repo_url)
pom.version = android.defaultConfig.versionName
pom.groupId = "org.wordpress"
pom.artifactId = "wordpress-utils"
Expand Down

0 comments on commit d2a76e2

Please sign in to comment.