Skip to content

v1.1.3

Compare
Choose a tag to compare
@Gedochao Gedochao released this 14 Feb 09:58
· 205 commits to main since this release
f59e4f8

Support for LTS Scala version aliases

It is now possible to use lts and 3.lts as Scala version aliases in Scala CLI.
They refer to the latest LTS version of Scala (the 3.3.x line at the time of this release).

scala-cli run -S lts --with-compiler -e 'println(dotty.tools.dotc.config.Properties.simpleVersionString)'
# Compiling project (Scala 3.3.1, JVM (17))
# Compiled project (Scala 3.3.1, JVM (17))
# 3.3.1

Using the 2.lts, 2.13.lts & 2.12.lts aliases returns a meaningful error, too.

scala-cli run -S 2.lts -e 'println(scala.util.Properties.versionString)'                                 
# [error]  Invalid Scala version: 2.lts. There is no official LTS version for Scala 2.
# You can only choose one of the 3.x, 2.13.x, and 2.12.x. versions.
# The latest supported stable versions are 2.12.18, 2.13.12, 3.3.1.
# In addition, you can request compilation with the last nightly versions of Scala,
# by passing the 2.nightly, 2.12.nightly, 2.13.nightly, or 3.nightly arguments.
# Specific Scala 2 or Scala 3 nightly versions are also accepted.
# You can also request the latest Scala 3 LTS by passing lts or 3.lts.

Added by @kasiaMarek in #2710

--semanticdb-targetroot and --semanticdb-sourceroot options

It is now possible to set the SemanticDB target root and source root directories with unified syntax, independent of the target Scala and/or Java versions.

scala-cli compile src/semanticdb-example.sc --semanticdb-targetroot ./targetRootDir --semanticdb-sourceroot .

Added by @Gedochao in #2692

Fixes

Documentation changes

  • Add information about --preamble in assembly packaging documentation by @spacebanana420 in #2713
  • Back port of documentation changes to main by @github-actions in #2717
  • Documentation for creation of custom toolkit by @yadavan88 in #2715
  • Back port of documentation changes to main by @github-actions in #2718
  • Fix formatting in custom toolkit doc by @yadavan88 in #2719
  • Back port of documentation changes to main by @github-actions in #2720
  • Added info about repl with toolkit by @yadavan88 in #2721
  • Back port of documentation changes to main by @github-actions in #2723

Updates and maintenance

New Contributors

Full Changelog: v1.1.2...v1.1.3