6502-opcodes/project/Scala3Plugin.scala

22 lines
518 B
Scala
Raw Normal View History

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