ePages-de / restdocs-wiremock

Spring REST Docs WireMock Integration
Apache License 2.0
75 stars 27 forks source link

bintray upload of wiremock-spring-boot-starter fails #56

Closed mduesterhoeft closed 6 years ago

mduesterhoeft commented 6 years ago

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 6 years ago

I can reproduce the issue by setting the dryRunflag 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 6 years ago

Fixed with #58