Skip to content

What am I doing wrong -- Could not create task ':copyContracts'. #2146

@aronAtWex

Description

@aronAtWex

I have been trying to learn Spring Cloud Contract and implement it on one of our basic API services.

I get stuck with this error.
An exception occurred applying plugin request [id: 'org.springframework.cloud.contract', version: '4.2.0']

Failed to apply plugin 'org.springframework.cloud.contract'.
Could not create task ':copyContracts'.
> Configuration with name 'contractTestGeneratorRuntimeClasspath' not found.

  I have trying some get starting guides on the internet but they seem out dated some. 
  https://spring.io/guides/gs/contract-rest
  https://www.baeldung.com/spring-cloud-contract
  
  I'm using gradle which I'm still learning, but most of the guides are using Maven. 
  Any help would be greatly appreciated. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions