Skip to content

v2.1.20

Latest

Choose a tag to compare

@ystyle ystyle released this 09 Oct 07:57
565a4b6

feat: platform provider architecture

  • JDK management is routed through a platform.Provider abstraction; the native Windows provider is the current implementation, with SDKMAN planned as a follow-up
  • package restructuring: utils/*, internal/icli, internal/models, internal/ui → internal/{cli,config,platform,native,tui,jdk,fsutil,httpclient,java}
  • new jvms config command; the resolution_priority setting is retired (older config files still load, and the field is dropped on save)
  • version resolution: bare values — including numbers such as 17 — are always versions; #N selects a numbered row from jvms list or jvms rls
  • jvms switch --as_path / -p now really switches to a JDK path; dangling JAVA_HOME links are replaced, and a non-symlink JAVA_HOME is never overwritten
  • JDK folders copied manually into store (including names with spaces) can be listed, switched and removed again
  • catalog caching is configurable via cache_toggle / cache_ttl, versions sort newest first, and failed downloads no longer report success
  • tests for cli, config, jdk, native, platform and tui, plus .githooks/pre-commit

Upgrade notes

  • jvms switch 2 now means JDK version "2". To activate the 2nd row of jvms list, use jvms switch "#2" (quote it so PowerShell passes it through).
  • jvms install 17 / jvms use 17 select JDK 17 again instead of treating the number as a catalog index; use jvms install "#17" for index selection.
  • This build is Windows-only: the native provider requires Windows, so other platforms stop with an explicit "not yet supported" message.