Skip to content

[2.x] "server was not detected" (runner should fail on JDK 8) #8813

@eed3si9n

Description

@eed3si9n

steps

Use JDK 8.

$ touch build.sbt
$ sbt -Dsbt.version=2.0.0-RC9

problem

$ sbt -Dsbt.version=2.0.0-RC9
[info] server was not detected. starting an instance
[error] failed to connect to server

This is somewhat confusing error since it hides the server error.

expectation

If the sbt runner script detects JDK lower than JDK 17, it should fail to launch sbt 2.0, and print out a message to stderr:

[error] sbt 2.x requires JDK 17 or above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions