Fix build from breaking when missing bintray creds.
@@ -96,9 +96,14 @@ artifactoryPublish { task ->
}
}
+bintrayUpload { task ->
bintray {
+ gradle.taskGraph.whenReady { taskGraph ->
+ if (taskGraph.hasTask(task)) {
user = bintrayUser
key = bintrayApiKey
+ }
+ }
configurations = ['archives']
@@ -144,3 +149,4 @@ bintray {
// }
}
}
+}
