Skip to content

Implement Scala CLI as the scala runner command #2838

@Gedochao

Description

@Gedochao

Finally, the time has come to bring SIP-46 to a closure and implement Scala CLI as the official runner command for the Scala 3 compiler.

Corresponding compiler issue

Relevant docs

Requirements

  • set up downloading of Scala CLI JVM launcher from GitHub VirtusLab/scala-cli
  • download library dependencies to the dist/target/pack in maven repo style
  • fix scripts to wrap Scala CLI launcher, setting both the local repo and default scala version launcher options
    • update for windows (batch)
    • update for linux/mac (bash)
  • run any existing legacy (old) scala runner tests against the Scala CLI launcher on the scala/scala3 CI
  • use the Scala CLI launcher instead of the scala runner in official Scala 3 distributions
    • coursier
    • brew
    • SDKMAN

Potential follow-ups which are NOT included in this issue's scope

  • including platform-specific native installations of Scala CLI in Scala 3 official distribution channels
    • this should be done alongside native distribution of scalac, scaladoc etc
  • including Scala CLI in other Scala 3 installation methods (APT, winget, etc)

Metadata

Metadata

Assignees

Labels

SIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.enhancementNew feature or requestinstallationEverything related to installing the CLI itselfpriority: high

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions