Skip to content

v1.8.5

Choose a tag to compare

@Gedochao Gedochao released this 06 Aug 21:09
· 166 commits to main since this release
3ceeaec

Support for Scala 3.7.2

This Scala CLI version switches the default Scala version to 3.7.2.

scala-cli version
# Scala CLI version: 1.8.5
# Scala version (default): 3.7.2

Added by @Gedochao in #3809

Add props with input paths for non-script inputs

2 new properties have been added, to provide a way to access input paths outside of .sc scripts:

  • scala.sources - full paths of all inputs in the project, separated by java.io.File.pathSeparator
  • scala.source.names - names of all inputs in the project, separated by java.io.File.pathSeparator
//PrintSources.scala
@main def main() = {
  println(sys.props("scala.sources"))
  println(sys.props("scala.source.names"))
}
~/PrintSources.scala
PrintSources.scala

These are meant to be an input type agnostic equivalent for the scriptPath method available in .sc scripts.

Added by @philwalk in #3799

sonatype:snapshots points to the new Sonatype Central snapshots repository

It is no longer necessary to manually add https://central.sonatype.com/repository/maven-snapshots, it is added under the sonatype:snapshots alias (along with the old snapshot repository).
It is also added in all other contexts when snapshots should be used.

//> using repository sonatype:snapshots

Added by @Gedochao in #3797

Scala CLI nightlies are available again

We once again publish Scala CLI nightlies. You can use the newest version under the nightly tag.
As pre-1.8.5 Scala CLI versions do not look for them on the new Sonatype Central snapshots repository, they will not be visible when called from earlier versions.

scala-cli --cli-version nightly version
# Scala CLI version: 1.8.4-24-g8ca6c960b-SNAPSHOT
# Scala version (default): 3.7.2

Note that the new Sonatype Central Portal retains snapshot versions for 90 days, so individual versions will be available to test for a limited time period.

Added by @Gedochao in #3818

Features

  • Automatically add the new Sonatype Central Portal snapshots repository when snapshots are expected to be used by @Gedochao in #3797
  • Adjust Scala CLI nightly version resolution for the new Maven Central Snapshots repository by @Gedochao in #3818
  • provide a way to access paths of source files by @philwalk in #3799
  • Add more logging for publishing by @Gedochao in #3813

Fixes

Build and internal changes

  • Tag tests relying on old snapshots as flaky (or remove them where applicable) by @Gedochao in #3817
  • Add --no-fallback to graalvm native-image configuration by @lbialy in #3820

Updates

New Contributors

Full Changelog: v1.8.4...v1.8.5