mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-22 09:30:45 +00:00
22 lines
518 B
Scala
22 lines
518 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.2.2"
|
|
)
|
|
|
|
override val projectSettings: Seq[Setting[_]] = Seq(
|
|
scalacOptions ++= Seq("-indent", "-rewrite")
|
|
)
|
|
}
|