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'sautoImport
- it now requires aSet
of all selectedScalacOptions
for the current mode in addition to the current Scala version. - The
filterConsoleScalacOptions
function exported via this plugin'sautoImport
was renamed totpolecatConsoleOptionsFilter
for consistency with other keys provided by the plugin.
Removed
- The
validFor
function that was previously exported via this plugin'sautoImport
.