Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for gradle's "resolutionStrategy" #7968

Open
1 task done
koppor opened this issue Sep 5, 2023 · 0 comments
Open
1 task done

Support for gradle's "resolutionStrategy" #7968

koppor opened this issue Sep 5, 2023 · 0 comments
Labels
L: java:gradle Maven packages via Gradle T: feature-request Requests for new features

Comments

@koppor
Copy link

koppor commented Sep 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

Gradle offers the possibility to pin dependencies by using a resolutionStrategy. We are going to use this feature to force the newest version in all dependencies.


Example:

When opening the Dependency Analyzer of IntelliJ (via button marked with 1), IntelliJ shows conflicting dependencies (one example marked with 2):

image

This can be solved using

configurations.all {
    resolutionStrategy {
        failOnVersionConflict()
        preferProjectModules()

        force 'commons-codec:commons-codec:1.15',
                'org.antlr:antlr4-runtime:4.13.0'
    }
}

The example documentation also talks about forceModules, which I currently don't know how to handle.


It would be great if dependabot also upgrades the version numbers in configurations.all.resolutionStragy.force.

@koppor koppor added the T: feature-request Requests for new features label Sep 5, 2023
@abdulapopoola abdulapopoola added the L: java:gradle Maven packages via Gradle label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: java:gradle Maven packages via Gradle T: feature-request Requests for new features
Projects
Status: Planned
Development

No branches or pull requests

2 participants