Skip to content

Conversation

@eed3si9n
Copy link
Member

Fixes #7384

Problem

sbt currently does not support JDK 25 Main class. JDK 25 supports:

  1. non-public main method
  2. doesn't need Array[String] arg
  3. doesn't have to be a static method

Solution

This updates Zinc, which supports new Main class detection.

In addition, this implements in-process run emulation support.

**Problem**
sbt currently does not support JDK 25 Main class. JDK 25 supports:
1. non-public main method
2. doesn't need Array[String] arg
3. doesn't have to be a static method

**Solution**
This updates Zinc, which supports new Main class detection.

In addition, this implements in-process run emulation support.
@eed3si9n eed3si9n merged commit b52944c into sbt:1.11.x Sep 28, 2025
14 of 15 checks passed
@eed3si9n eed3si9n deleted the wip/jdk25-main branch September 28, 2025 06:15
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.

1 participant