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

Use project's Maven/Gradle repository to determine latest available Spring Boot versions #905

Closed
BoykoAlex opened this issue Nov 23, 2022 · 2 comments
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode status: declined theme: refactoring type: enhancement

Comments

@BoykoAlex
Copy link
Contributor

Query the configured repositories on the projects for the available spring-boot versions. This would have the benefit of being precise about the available Spring Boot versions in the environment of the user - instead of showing which versions are available in general. But that depends on the amount of work that is necessary to implement this part.

Currently available Spring Boot versions are determined by querying maven central for available versions of spring-boot artifact. This should be replaced with getting available spring boot versions directly from artifact repositories specified for the project via maven/gradle build file.

The idea is get IMaven instance from MavenCore plugin, then call readProject(...) then the result of this call would be Maven Project object that has getRemoteArtifactRepositories() method where each ArtifactRepository has an instance method findVersions(Artifact) where artifact is the spring-boot artifact which should be hard coded.
Gradle is unclear at the moment but likely be something similar.
For both Maven and Gradle project we'd need a command handler in JDT (Eclipse) and in JDT LS extension (VSCode) to provide versions of an artifact given the project or more likely the build file URI. In other words we'd need a protocol extension to ask JDT/JDT LS for available versions

@BoykoAlex
Copy link
Contributor Author

BoykoAlex commented Jan 20, 2023

Available versions of an artifact in Maven example: eclipse-m2e/m2e-core#1213 (comment)

Gradle's case is still unclear: https://discuss.gradle.org/t/available-versions-of-an-artifact/44704

@martinlippert
Copy link
Member

We are pausing the work on this and instead focus on getting the version information from either Maven Central or spring.io.

@martinlippert martinlippert closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
@martinlippert martinlippert removed this from the 4.17.2.RELEASE milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode status: declined theme: refactoring type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants