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

Apply dependency management as constraints #330

Open
wilkinsona opened this issue Jun 30, 2022 · 1 comment
Open

Apply dependency management as constraints #330

wilkinsona opened this issue Jun 30, 2022 · 1 comment

Comments

@wilkinsona
Copy link
Contributor

Move away from using a resolution strategy to applying dependency management as constraints. Each constraints can use because to describe why it's in place, for example managed by org.springframework.boot:spring-boot-dependencies:2.7.1. Like Gradle's platform support, the constraints should indicate a required version (a minimum acceptable version). We should also offer support for constraints with strict versions as Gradle does with an enforced platform.

@igormukhin
Copy link

igormukhin commented Feb 11, 2025

Just bumped into that issue.

Wanted to set a constraint on a transitive dependency that is managed by Spring Boot, but the plugin overrides my constraints.

The constraint:

dependencies {
    //...

    constraints {
        implementation("net.minidev:json-smart").version { require("2.5.2") }
    }
}

The override:

...
|    \--- io.micrometer:micrometer-observation:1.14.2 (*)
+--- com.jayway.jsonpath:json-path -> 2.9.0
\--- net.minidev:json-smart:2.5.2 -> 2.5.1 (c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants