janjaali / scala-compiler-options   1.7.0

MIT License GitHub

Scala compiler options as a plugin

Scala versions: 2.12
sbt plugins: 1.x

scala-compiler-options

SBT plugin that adds necessary compiler options to your SBT project (Disclaimer: the list of added compiler options is highly opinionated).

Usage

Add this plugin to your project and the compiler options will be added automatically to your project:

addSbtPlugin("com.github.janjaali" % "scala-compiler-options" % "1.8.0")

You can print out the compiler options that are added to your project:

sbt printCompilerOptions

Supported Scala versions

  • 3.0.x -> 3.6.x
  • 2.13.0 -> 2.13.15

Development

This repository contains test projects in ./test, one for each minor Scala version. The test projects are used to "integration" test this plugin while developing.

Organize Imports

Organize imports by using liancheng/scalafix-organize-imports:

sbt scalaFixAll

Format

Format source code by using scalameta/scalafmt:

sbt scalafmtAll

Publish

  1. Update plugin version in build.sbt and this README file.

  2. Publish plugin sbt publishSigned.

  3. Tag version git tag -a v1.8.0 -m "Release version 1.8.0.".

  4. Push tags git push --tags.

  5. Create new GitHub release from tag.