Skip to content

Support JDK version strings from ASDF backend #60

@smartboyathome

Description

@smartboyathome

My group maintains apps that span desktop, web, and mobile, using a combination of Java, Swift, and JavaScript. Due to this, we've been seeking a single, cross-language version manager. Proto seems like it would fit the bill, especially since asdf itself doesn't support Windows. Java is the sticking point for us, but with the introduction of the asdf backend, we were hoping that we could use that to ensure the correct version of Java across all machines. The asdf java plugin uses an unusual string format, in the form of <sdk-name>-<version>, where the version doesn't necessarily follow the semver spec. I can see all the versions in the remote-versions.json generated by Proto, but when trying to select a version it fails to do so.

Attached is the proto-java-install.log file, which shows all the versions and how resolve_version is unable to find any. I have also tried using 21.0.2 as a version number, alongside openjdk-21.0.2. None of these worked.

proto-java-install.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions