Skip to content

Provide a list of managed dependencies with version for a given pom #384

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

Closed
fabapp2 opened this issue Sep 6, 2022 · 0 comments · Fixed by #393
Closed

Provide a list of managed dependencies with version for a given pom #384

fabapp2 opened this issue Sep 6, 2022 · 0 comments · Fixed by #393
Labels
type: enhancement New feature or request
Milestone

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Sep 6, 2022

What needs to be done

A component should return a list of dependencies with their settings as defined in a given pom or its tree of dependencies.

managedDependencyResolver.findManagedDependency(String groupId, String artifactId) : Optional<Dependency>

Why it needs to be done

This component is required for two cases:
. Find the managed version of a declared dependency with a version set that is managed otherwise.
. Find all dependencies declared in a pom that are managed in another (e.g. for projects that copy the dependency management to have it under their control and thus don't use Spring Boot dependency management. Here all managed modules need to be updated accordingly)

Acceptance Criteria

ManagedDependencyResolver resolver = new ManagedDependencyResolver("org.springframework.boot", "spring-boot-dependencies", "2.7.3");
// or 
ManagedDependencyResolver resolver = new ManagedDependencyResolver("org.springframework.boot:spring-boot-dependencies:2.7.3");

Dependency match = resolver.findManagedDependency("org.elasticsearch", "elasticsearch");
assertThat(match.get().getVersion()).isEqualTo("7.17.4");

Additional Information

@fabapp2 fabapp2 added this to the v0.12.0 milestone Sep 20, 2022
@fabapp2 fabapp2 added the type: enhancement New feature or request label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant