Skip to content

0.3.4

Latest

Choose a tag to compare

@alexarchambault alexarchambault released this 04 Nov 15:01
· 5 commits to main since this release
d41956d

Source-breaking change

dep"…" and mod"…" only accept String values

Values interpolated into the dep and mod string interpolators now have to be Strings, on both Scala 2 and Scala 3.
Before, any value was accepted and turned into a string with .toString. This let mistakes compile silently: interpolating an Option[String] put Some(…) in the module name or version.
Now anything that isn't a String, like an Option[String] or an Int, is rejected at compile time:

val ver: Option[String] = Some("2.1.24")
dep"io.get-coursier::coursier:$ver"     // now a compile-time error
dep"io.get-coursier::coursier:${ver.get}" // OK

To migrate, convert such values to a String explicitly at the call site.
By @alexarchambault in #154

Documentation

The README has been largely rewritten (#152). It now:

  • explains what dependency strings look like and which tools use them
  • documents the module and dependency syntax, and the module and dependency types
  • says which custom parameters are taken into account
  • shows how parsing errors are reported
  • explains how interpolated values are handled: they are inserted as is, so a : they contain stays in the name or version rather than being parsed as a separator
  • fixes the dependency-interface examples and install instructions, and updates them to the latest versions and Mill 1.x syntax
  • adds a table of contents and a contributing section

Dependency updates

  • coursier interface 1.0.28 → 1.0.30, used by dependency-interface (#147, #148)
  • Scala 3 artifacts are now built with Scala 3.3.9, up from 3.3.8 (#150)

Build and publishing

None of these affect library users.

  • Artifacts are also on GitHub Packages: releases and snapshots are now mirrored to GitHub Packages as well as Maven Central. Maven Central is still the main source. The GitHub Packages mirror is best-effort only. (#155)

  • Publishing now uses Mill's built-in Sonatype Central support (Mill 1.1.10, then 1.3.1), replacing a temporary custom publisher. Publishing jobs to Sonatype Central now run one at a time, so a snapshot can no longer race a release. (#155)

  • The build downloads and caches the coursier launcher itself to run mdoc, so contributors and CI no longer need cs installed. CI no longer uses coursier/setup-action. (#153)

  • coursier/cache-action bumped from v8 to v9 (#151)

  • License metadata in POMs: the published POMs now list the Apache 2.0 license. They used to say BSD-3-Clause, which didn't match the LICENSE file or the README. (Part of #152)

Full Changelog: v0.3.3...v0.3.4