6502-opcodes/project/Scala3Plugin.scala

22 lines
518 B
Scala
Raw Normal View History

2023-10-03 20:15:10 +00:00
import sbt.Keys.*
import sbt.*
2022-02-14 17:32:56 +00:00
/**
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
2023-10-03 20:15:10 +00:00
override val buildSettings: Seq[Setting[?]] = Seq(
2024-04-01 13:29:25 +00:00
scalaVersion := "3.4.1"
2022-06-20 16:07:16 +00:00
)
2023-10-03 20:15:10 +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
)
}