Skip to content

Releases: typelevel/sbt-tpolecat

0.3.1

25 Apr 09:57
8e85dba
Compare
Choose a tag to compare

Changed

  • The dependency on the sbt-partial-unification plugin was dropped. This is because support for partial unification was backported to Scala 2.11.11, so all versions of Scala supported by this plugin either enable partial unification by default or provide a compiler option to enable it. This means that this plugin will no longer enable partial unification on 2.11.x patch releases older than 2.11.11.

0.3.0

22 Apr 16:31
6494873
Compare
Choose a tag to compare

Added

  • A defaultConsoleExclude option set was added to the ScalacOptions DSL. This option set can be used for filtering out compiler options that trigger warnings in the Scala REPL.

Changed

  • tpolecatConsoleOptionsFilter was replaced by tpolecatExcludeOptions. The use of a function to filter out console options did not interact well with the new method of setting scalacOptions in sbt-tpolecat 0.2.3. Please append to tpolecatExcludeOptions in the console task you wish to configure instead, e.g.

    IntegrationTest / console / tpolecatExcludeOptions ++= ScalacOptions.defaultConsoleExclude

0.2.3

13 Apr 23:52
311dc9e
Compare
Choose a tag to compare

Added

  • Begin keeping a changelog.
  • Added -Xsource (Scala 2.x) and -source (Scala 3.x) early migration settings to the ScalacOptions DSL.

Fixed

  • #60 - a bug in setting scalacOptions where it was set using := rather than appended to via ++=. This prevented scope delegation via ThisBuild / scalacOptions from working for some users.

0.2.2

04 Apr 21:19
31ebfff
Compare
Choose a tag to compare

Fixed

  • Ensure that all keys with dependencies are derived settings, so that e.g. Test / tpolecatScalacOptions can be used to manipulate Test / scalacOptions.
  • Add a toString to ScalacOption.

0.2.1

04 Apr 21:18
f8443a1
Compare
Choose a tag to compare

Added

  • Enable MiMa checks in GitHub Actions workflows.
  • Set versionScheme to clarify version compatibility claims.

Fixed

  • Apply -Xfatal-warnings regardless of version once more. Applying -Werror for Scala 2.13.x causes problems for users who currently filter out -Xfatal-warnings from scalacOptions explicitly.

Changed

  • Expanded usage instructions to guide users toward the ScalacOptions DSL.

0.2.0

04 Apr 21:17
6a13e0d
Compare
Choose a tag to compare

Added

  • Development, CI and release modes for setting options differently according to the context.
  • Add a simple ScalacOptions DSL for setting options in each mode.
  • Add mode-setting commands tpolecatDevMode, tpolecatCiMode, tpolecatReleaseMode.
  • Environment variable checks in order to decide which mode to enable on startup.

Changed

  • The signature of scalacOptionsFor exported via this plugin's autoImport - it now requires a Set of all selected ScalacOptions for the current mode in addition to the current Scala version.
  • The filterConsoleScalacOptions function exported via this plugin's autoImport was renamed to tpolecatConsoleOptionsFilter for consistency with other keys provided by the plugin.

Removed

  • The validFor function that was previously exported via this plugin's autoImport.