Skip to content

[2.x] feat: Add "3-latest.candidate" support for Scala 3 release candidates#8596

Merged
eed3si9n merged 5 commits intosbt:developfrom
calm329:feat/scala-3-latest-candidate
Jan 21, 2026
Merged

[2.x] feat: Add "3-latest.candidate" support for Scala 3 release candidates#8596
eed3si9n merged 5 commits intosbt:developfrom
calm329:feat/scala-3-latest-candidate

Conversation

@calm329
Copy link
Copy Markdown
Contributor

@calm329 calm329 commented Jan 21, 2026

Summary

Add support for "3-latest.candidate" to automatically resolve to the latest Scala 3 RC from Maven Central.

scalaVersion := "3-latest.candidate"

Ref #8590

Changes

  • Add scalaDynVersion task that resolves dynamic version strings
  • Fetch and parse Maven Central metadata to find the latest RC (pattern: X.Y.Z-RCN, excludes nightlies)
  • Cache results for 24 hours across all subprojects
  • Handle dynamic patterns in binaryScalaVersion, earlyScalaVersion, and isScala3

Test plan

  • Unit tests for version utility functions
  • Scripted test verifying resolution and compilation

Fixes #8595

@calm329
Copy link
Copy Markdown
Contributor Author

calm329 commented Jan 21, 2026

@eed3si9n Could you please review my pr?

Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall lgtm!

@eed3si9n eed3si9n changed the title feat: Add "3-latest.candidate" support for Scala 3 release candidates [2.x] feat: Add "3-latest.candidate" support for Scala 3 release candidates Jan 21, 2026
@eed3si9n eed3si9n merged commit 1b8e331 into sbt:develop Jan 21, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"3-latest.candidate" for Scala 3 release candidates

2 participants