Forums : CoPilot

[FAQ] How do I override the version of a transitive dependency?

Gradle

To override the version of a transitive dependency in Gradle, exclude it from the declared dependency that pulls it in, and then explicitly declare the version that you prefer to use in your build.gradle.

dependencies {
    compile("my:declared:dependency") {
        exclude group: 'transitive.group.id', module: 'artifactId'
    }
    compile "transitive.group.id:artifactId:your.preferred.version"
}

Maven

To override the version of a transitive dependency in Maven, just explicitly declare the version of the component that you prefer to use in your pom.xml.

Click for example

7c7cbcfd692bfcc2e16df5379ecdafd3?&s=42&rating=pg&d=https%3a%2f%2fopenhub.net%2fanon80
Nick Ver Voort about 2 years ago
 

really?

A41dd1f57160976ca5dc6a5a80da5438?&s=42&rating=pg&d=https%3a%2f%2fopenhub.net%2fanon80
Crossonrose 25 days ago
 

Post a Response