Forums : CoPilot

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at info@openhub.net

[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 over 3 years ago
 

really?

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