diff options
author | Yigit Boyar <yboyar@google.com> | 2015-10-06 11:12:28 -0700 |
---|---|---|
committer | Yigit Boyar <yboyar@google.com> | 2015-10-06 11:12:28 -0700 |
commit | 90d6351746810033df84e2e6878584d64ebae098 (patch) | |
tree | 861053c918103d443257523fd62d94f8144e39d5 /developmentPlugins | |
parent | e23af2603f80c6d51b4f0be47d82477f6cca975d (diff) | |
download | data-binding-90d6351746810033df84e2e6878584d64ebae098.tar.gz |
Ignore warnings from bintray
Change-Id: Id241077e22bef6000ae13c06c8538dd59a5293c8
Diffstat (limited to 'developmentPlugins')
-rw-r--r-- | developmentPlugins/bintrayPlugin/src/main/groovy/android/databinding/UploadToBintrayTask.groovy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/developmentPlugins/bintrayPlugin/src/main/groovy/android/databinding/UploadToBintrayTask.groovy b/developmentPlugins/bintrayPlugin/src/main/groovy/android/databinding/UploadToBintrayTask.groovy index 0f1cc9a9..0515c4e0 100644 --- a/developmentPlugins/bintrayPlugin/src/main/groovy/android/databinding/UploadToBintrayTask.groovy +++ b/developmentPlugins/bintrayPlugin/src/main/groovy/android/databinding/UploadToBintrayTask.groovy @@ -74,9 +74,9 @@ public class UploadToBintrayTask extends DefaultTask { } def responseText = execute.text def json = new JsonSlurper().parseText(responseText) - if (json.getAt("message") != "success") { + if (json.getAt("message") != "success" && json.getAt("message") != null) { throw new RuntimeException("Cannot upload artifact. Error response: " + - "${json.getAt("message")}") + "${json.getAt("message")} ${responseText}") } println("uploaded $localFile") } |