You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use project's Maven/Gradle repository to determine latest available Spring Boot versions #905
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
Activity
BoykoAlex commentedon 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 commentedon Jan 31, 2023
We are pausing the work on this and instead focus on getting the version information from either Maven Central or spring.io.