Fix build from breaking when missing bintray creds.
MODIFY
gradle/publish.gradle
gradle/publish.gradle
@@ -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 {
// }
}
}
+}

Fix build from breaking when missing bintray creds.