6502-opcodes/project/Scala3Plugin.scala
2024-02-09 10:58:05 -05:00

22 lines
522 B
Scala

import sbt.Keys.*
import sbt.*
/**
* Automatically enriches projects with the following settings (despite the word "override").
*/
object Scala3Plugin extends AutoPlugin {
/**
* Thus plug-in will automatically be enabled; it has no requirements.
*/
override def trigger: PluginTrigger = AllRequirements
override val buildSettings: Seq[Setting[?]] = Seq(
scalaVersion := "3.4.0-RC4"
)
override val projectSettings: Seq[Setting[?]] = Seq(
scalacOptions ++= Seq("-indent", "-rewrite")
)
}