setup-java/src
Bruno Borges 4db08ef6bf
Infer distribution from asdf .tool-versions vendor prefix (#1084)
* Infer distribution from asdf .tool-versions vendor prefix

asdf-java encodes the JDK vendor as a prefix on the version string in
.tool-versions (e.g. `java temurin-17.0.3+7`). Capture that prefix and
map it to a setup-java distribution, mirroring the existing .sdkmanrc
behavior. Unknown prefixes warn and fall back to the distribution input.

Fixes #1081

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-08 12:57:52 -04:00
..
distributions Map Zulu x86 architecture to i686 for Azul Metadata API (#1079) 2026-07-08 09:46:49 -04:00
auth.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
cache.ts feat: add .mvn/extensions.xml to Maven cache key pattern (#1041) 2026-07-08 10:07:54 +01:00
cleanup-java.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
constants.ts Rename jdkFile input to jdk-file with deprecated alias (#1083) 2026-07-08 12:44:58 -04:00
gpg.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
maven-args.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
setup-java.ts Rename jdkFile input to jdk-file with deprecated alias (#1083) 2026-07-08 12:44:58 -04:00
toolchains.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
util.ts Infer distribution from asdf .tool-versions vendor prefix (#1084) 2026-07-08 12:57:52 -04:00