Skip to content

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

Closed as not planned

Description

@BoykoAlex

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

  1. added
    for: eclipse
    for: vscode
    and removed on Nov 24, 2022
  2. added this to the 4.17.1.RELEASE milestone on Nov 24, 2022
  3. BoykoAlex commented on Jan 20, 2023

    @BoykoAlex
    ContributorAuthor
  4. martinlippert commented on Jan 31, 2023

    @martinlippert
    Member

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

  5. removed this from the 4.17.2.RELEASE milestone on Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsefor: vscodestatus: declinedtheme: refactoringtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions