-
Notifications
You must be signed in to change notification settings - Fork 2
Configurations
moznion edited this page Apr 22, 2020
·
7 revisions
This page describes configurations for sbt-spotless.
Format Java files by google-java-format
import net.moznion.sbt.spotless.config._
lazy val root = (project in file("."))
.settings(
name := "Example",
spotlessJava := JavaConfig(
googleJavaFormat = GoogleJavaFormatConfig()
),
)
Format Scala files by scalafmt
import net.moznion.sbt.spotless.config._
lazy val root = (project in file("."))
.settings(
name := "Example",
spotlessScala := ScalaConfig(
scalafmt = ScalaFmtConfig(),
),
)