bintray upload of wiremock-spring-boot-starter fails
mduesterhoeft opened this issue · 2 comments
mduesterhoeft commented
When a release build runs on travis afterwards there is an artifact for restdocs-wiremock
but not for wiremock-spring-boot-starter
.
After adding info logs for the publish task I see the following exception in the logs:
see https://travis-ci.org/ePages-de/restdocs-wiremock/builds/298611378
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':wiremock-spring-boot-starter:bintrayUpload'.
> Cannot cast object 'task ':bintrayUpload'' with class 'com.jfrog.bintray.gradle.BintrayUploadTask_Decorated' to class 'com.jfrog.bintray.gradle.BintrayUploadTask'
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
13 actionable tasks: 7 executed, 6 up-to-date
Executing ./gradlew :wiremock-spring-boot-starter:bintrayUpload
locally works fine
mduesterhoeft commented
I can reproduce the issue by setting the dryRun
flag on the bintray
configuration.
bintray {
//...
dryRun = true
//...
}
With this setting running ./gradlew publish
yields the same error as mentioned above.
If only one bintrayUpload is added to the publish task in the top-level build.gradle
it works fine:
//publish.dependsOn(':restdocs-wiremock:bintrayUpload')
publish.dependsOn(':wiremock-spring-boot-starter:bintrayUpload')
mduesterhoeft commented
Fixed with #58