gradle pactPublish fails
See original GitHub issueI think the fix for #291 may have broken the successful publish case:
Publishing service-another-service.json ... HTTP/1.1 201 Created
:pactPublish FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':pactPublish'.
> No signature of method: org.apache.http.message.BasicStatusLine.startsWith() is applicable for argument types: (java.lang.String) values: [FAILED!]
PactBrokerClient returns resp.statusLine (a BasicStatusLine) whereas the failure case returns a string
response.success = { resp -> resp.statusLine }
response.failure = { resp, json ->
def error = json?.errors?.join(', ') ?: 'Unknown error'
"FAILED! ${resp.statusLine.statusCode} ${resp.statusLine.reasonPhrase} - ${error}"
}
Occuring in 3.2.11
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
gradle pactPublish fails · Issue #307 · pact-foundation/pact-jvm
HTTP/1.1 201 Created :pactPublish FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ...
Read more >"Your project is misconfigured" error when publishing results ...
The pact verifies successfully without -Ppact.verify.publishResults=true on the command line. I am using Gradle 6.8.3 with Java 11 and ...
Read more >Gradle plugin to verify a provider | Pact Docs
The pact gradle plugin provides a pactPublish task that can publish all pact files in a directory to a pact broker. To use...
Read more >Could not get unknown property 'compileConfigurationName ...
I am getting the following error while updating Gradle. Caused by: groovy.lang.MissingPropertyException: Could not get unknown property ...
Read more >Untitled
Add the pact-jvm-provider-gradle jar file to your build script class path: ... pact broker [version 2.2.7+] The pact gradle plugin provides a `pactPublish` ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve released version 3.2.13 with this fix
It can take a while for the index to propagate. search.maven.org is listing it: http://search.maven.org/#search|gav|1|g%3A"au.com.dius" AND a%3A"pact-jvm-consumer-junit_2.11"