janjaali / scala-compiler-options   1.6.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.6.0")

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

sbt printCompilerOptions

Supported Scala versions

  • 3.3.x
  • 3.2.x
  • 3.1.x
  • 3.0.x
  • 2.13.0 -> 2.13.10

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 references in build.sbt and this README

  2. Git commit and push latest changes (including version bump)

  3. Publish plugin sbt publishSigned

  4. Tag version git tag -a v1.4.0 -m "Release version 1.4.0."

  5. Create new GitHub release from tag