Skip to content

[2.0.x] bport: Add allowMismatchScala setting#8849

Merged
eed3si9n merged 1 commit intosbt:2.0.xfrom
eed3si9n:bport2/mismatch
Mar 1, 2026
Merged

[2.0.x] bport: Add allowMismatchScala setting#8849
eed3si9n merged 1 commit intosbt:2.0.xfrom
eed3si9n:bport2/mismatch

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Mar 1, 2026

This is a backport of #8804

sbt 2.x allows dependsOn(...) between subprojects with mismatched Scala versions without any warning or error. This can lead to confusing classpath issues at compile or runtime, especially now that Scala 3.8+ has dropped backward TASTy compatibility with 2.13.

Per review feedback, move the Scala version mismatch check from compileTask to projectDependenciesTask, where PR #8681 already handles Scala version mixing logic. This provides earlier detection and keeps the validation co-located with cross-version resolution.

Generated-by: Copilot

sbt 2.x allows `dependsOn(...)` between subprojects with mismatched
Scala versions without any warning or error. This can lead to confusing
classpath issues at compile or runtime, especially now that Scala 3.8+
has dropped backward TASTy compatibility with 2.13.

Per review feedback, move the Scala version mismatch check from
compileTask to projectDependenciesTask, where PR sbt#8681 already handles
Scala version mixing logic. This provides earlier detection and keeps
the validation co-located with cross-version resolution.

Generated-by: Copilot
@eed3si9n eed3si9n merged commit bf33f51 into sbt:2.0.x Mar 1, 2026
15 checks passed
@eed3si9n eed3si9n deleted the bport2/mismatch branch March 1, 2026 10:27
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