diff --git a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy index 7e424d019d..6db92a53a7 100644 --- a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy +++ b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/Contract.groovy @@ -47,7 +47,7 @@ class Contract { /** * Factory method to create the DSL */ - static Contract make(Closure closure) { + static Contract make(@DelegatesTo(Contract) Closure closure) { Contract dsl = new Contract() closure.delegate = dsl closure()