project/plugins.sbt (2 lines of code) (raw):

scalaVersion := "2.11.8" addSbtPlugin("org.lucidchart" %% "sbt-scalafmt" % "1.12")