bintray / gradle-bintray-plugin

Apache License 2.0
1.28k stars 194 forks source link

bintrayUpload tasks for different modules #66

Open j4velin opened 9 years ago

j4velin commented 9 years ago

I have several libraries as different modules in my Android Studio project, which I want to publish to bintray. However, running the "gradle bintrayUpload" command tries to upload the first module, fails because that version is already published (HTTP 409) and stops without even considering publishing the other following library modules. Is there some kind of workaround for that issue, other than creating a separate project for each library?

orwir commented 9 years ago

Looks like what need to add own handler for 409 error. https://github.com/bintray/gradle-bintray-plugin/blob/master/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy#L242

And instead of throwing exception just show warn message. Have the same issue.

j4velin commented 9 years ago

workaround is to set dryRun = true on the other modules to skip uploading them