Skip to content

[1.x] bport: Runner should fail on JDK < 17 for sbt 2.x#8854

Merged
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport1/jdk-check
Mar 1, 2026
Merged

[1.x] bport: Runner should fail on JDK < 17 for sbt 2.x#8854
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport1/jdk-check

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Mar 1, 2026

This is a backport of #8825

Problem

Running sbt 2.x with JDK 8 produces a confusing "server was not detected" error because the JDK version check only required JDK 8+ and only ran in the non-native-client path.

Solution

Move java_version detection before the native client decision and add checkJava17ForSbt2 that requires JDK 17+ when sbt major version >= 2.

Fixes #8813

**Problem**
Running sbt 2.x with JDK 8 produces a confusing "server was not
detected" error because the JDK version check only required JDK 8+
and only ran in the non-native-client path.

**Solution**
Move java_version detection before the native client decision and add
checkJava17ForSbt2 that requires JDK 17+ when sbt major version >= 2.

Fixes sbt#8813
@eed3si9n eed3si9n merged commit ec0d181 into sbt:1.12.x Mar 1, 2026
12 of 13 checks passed
@eed3si9n eed3si9n deleted the bport1/jdk-check branch March 1, 2026 10:30
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.

2 participants