Search code examples
spring-cloud-contract

Could not generate a proxy class ContractVerifierExtension in Spring Cloud Contract


I'm following the basic setup under Gradle project. Getting this error:

* What went wrong:
An exception occurred applying plugin request [id: 'org.springframework.cloud.contract', version: '2.2.0.RELEASE']
> Failed to apply plugin [id 'org.springframework.cloud.contract']
   > Could not generate a proxy class for class org.springframework.cloud.contract.verifier.plugin.ContractVerifierExtension.

Related stacktrace:

Caused by: java.lang.NoClassDefFoundError: org/gradle/api/provider/MapProperty

Is there some gradle version requirement? I am currently on Gradle 4.9. Or some other reason?


Solution

  • Your version of gradle is wrong. Please use the latest 5.x version.