David Carr committed 288d3b9

build: don't throw an exception if attempting to upload without specifying credentials

We can't detect whether the task graph contains the uploadArchives task at this point, as the graph hasn't been assembled yet.

Comments (0)

Files changed (1)


             try {
                 authentication(userName: bintrayUserName, password: bintrayApiKey)
             } catch (MissingPropertyException ex) {
-                if (gradle.taskGraph.hasTask('uploadArchives')) {
-                    throw new InvalidUserDataException("Uploading to Bintray requires authentication.  Please configure the credentials with 'bintrayUserName' and 'bintrayApiKey' properties in your file.")
-                }
+                // ignore; just don't authenticate