SBT plugin that adds necessary compiler options to your SBT project (Disclaimer: the list of added compiler options is highly opinionated).
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.9.0")You can print out the compiler options that are added to your project:
sbt printCompilerOptions3.0.x->3.7.x2.13.0->2.13.15
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 by using liancheng/scalafix-organize-imports:
sbt scalaFixAllFormat source code by using scalameta/scalafmt:
sbt scalafmtAll-
Update plugin version in
build.sbtand this README file. -
Stage artifact
sbt publishSigned. -
Upload staged artifact
sbt sonaUpload -
Publish uploaded artifact https://central.sonatype.com/publishing/deployments.
-
Tag version
git tag -a v1.8.0 -m "Release version 1.8.0.". -
Push tags
git push --tags. -
Create new GitHub release from tag.