Spring-cloud-contract: Contract Test could't generate in java 10 & gradle

Created on 29 Aug 2018  路  4Comments  路  Source: spring-cloud/spring-cloud-contract

Hi,

We're planning to use java 10 for our tech stack. We've almost upgraded all dependency. We're use spring boot 2.1.0.M2 and cloud contract version as 2.1.0.BUILD-SNAPSHOT.

Gradle couldnt generate test from contract via gradle generateContractTests task. Output as below;

> Task :xxx:yyy:generateContractTests FAILED
Task ':xxx:yyy:generateContractTests' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Generated test sources dir [PATH]
Spring Cloud Contract Verifier Plugin: Invoking test sources generation
Contracts are unpacked to [PATH]
Included contracts are [.*]
Registering [PATH] as test source directory
:xxx:yyy:generateContractTests (Thread[Task worker for ':',5,main]) completed. Took 0.075 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xxx:yyy:generateContractTests'.
> org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(Ljava/lang/Iterable;Lgroovy/lang/Closure;)Ljava/util/List;

can you help us for this? If you need I will provide more info for you.

bug

Most helpful comment

All 4 comments

It's a problem that I'm currently solving. Thanks for filing this.

thanks @marcingrzejszczak we are excitedly waiting for you 馃憤

awesome! thanks @marcingrzejszczak

Was this page helpful?
0 / 5 - 0 ratings