I am migrating from Maven3 to Gradle and I have a transitive dependency on Spring in this form:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${supported-spring-version}</version>
</dependency>
I cannot change my dependent's pom.xml, so how can I resolve this transitive dependency? There are two issues here.
Ad 1. Setting a Java system property (e.g. System.setProperty("supported-spring-version", "3.0")
) in your Gradle build might do the job.
Ad 2. You don't declare this as a Groovy property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With