Skip to content

feat: introduce JBANG_JAVA_VENDOR with JBANG_JDK_VENDOR as fallback - #2810

Draft
maxandersen-agent wants to merge 1 commit into
jbangdev:mainfrom
maxandersen-agent:2124-java-vendor-env
Draft

maxandersen-agent wants to merge 1 commit into
jbangdev:mainfrom
maxandersen-agent:2124-java-vendor-env

Conversation

@maxandersen-agent

Copy link
Copy Markdown
Collaborator

adds the preferred JBANG_JAVA_VENDOR env var with the old JBANG_JDK_VENDOR as fallback, per the issue. covered in Util.getDistro() plus the bash and ps1 launchers (cmd delegates jdk installs to ps1), docs switched to the new name with a note about the fallback. unit test for the precedence.

Fixes #2124

JBANG_JAVA_VENDOR is the preferred name going forward; the older
JBANG_JDK_VENDOR keeps working as a fallback. Applied consistently in
the Java code and both launcher scripts that read it (jbang.cmd
delegates JDK installs to jbang.ps1), docs updated to the new name.

Fixes jbangdev#2124

Co-authored-by: maxandersen-agent <362451386+maxandersen-agent@users.noreply.github.com>
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

📦 PR Build Available

Install this PR build:

curl -sL https://github.com/jbangdev/jbang-pr-builds/releases/download/pr-2810/jbang.tar | tar xf - && ./jbang/bin/jbang version

Release
| Built from 6ff7fc7

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce JBANG_JAVA_VENDOR

2 participants