2022-02-14 17:32:56 +00:00
|
|
|
import sbt.Keys._
|
|
|
|
import sbt._
|
|
|
|
|
|
|
|
/**
|
2022-02-15 17:04:24 +00:00
|
|
|
* Automatically enriches projects with the following settings (despite the word "override").
|
|
|
|
*/
|
2022-02-14 17:32:56 +00:00
|
|
|
object Scala3Plugin extends AutoPlugin {
|
|
|
|
|
|
|
|
/**
|
2022-02-15 17:04:24 +00:00
|
|
|
* Thus plug-in will automatically be enabled; it has no requirements.
|
|
|
|
*/
|
2022-02-14 17:32:56 +00:00
|
|
|
override def trigger: PluginTrigger = AllRequirements
|
|
|
|
|
2022-06-20 16:07:16 +00:00
|
|
|
override val buildSettings: Seq[Setting[_]] = Seq(
|
2023-01-30 13:40:14 +00:00
|
|
|
scalaVersion := "3.2.2"
|
2022-06-20 16:07:16 +00:00
|
|
|
)
|
|
|
|
|
2022-06-14 00:18:30 +00:00
|
|
|
override val projectSettings: Seq[Setting[_]] = Seq(
|
2022-02-14 23:11:45 +00:00
|
|
|
scalacOptions ++= Seq("-indent", "-rewrite")
|
2022-02-14 17:32:56 +00:00
|
|
|
)
|
|
|
|
}
|