Hello, I'm using Version Catalog and Gradle 8.1.1 ...
# gradle
h
Hello, I'm using Version Catalog and Gradle 8.1.1 and want to use the following plugin of spring-boot-cloud (contract). I have applied
implementation(platform("org.springframework.cloud:spring-cloud-dependencies:2020.0.0"))
and this dependency knows what kind of dependency of the contract is needed: https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dependencies/2020.0.0/spring-cloud-dependencies-2020.0.0.pom
Copy code
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-dependencies</artifactId>
<version>${spring-cloud-contract.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
How do I dynamically get the version for this plugin (later when we upgrade spring-cloud-dependencies we should get also a compatible version of the contract. The plugin: https://plugins.gradle.org/plugin/org.springframework.cloud.contract/3.0.0
actually the dependency of spring-cloud-dependency is defined in my libs.versions.toml file.