6502-opcodes/project/Scala3Plugin.scala

19 lines
459 B
Scala
Raw Normal View History

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
override val buildSettings: Seq[Setting[_]] = Seq(
2022-02-14 23:11:45 +00:00
scalaVersion := "3.1.0",
scalacOptions ++= Seq("-indent", "-rewrite")
2022-02-14 17:32:56 +00:00
)
}