6502-opcodes/project/ProjectPlugin.scala
2021-04-05 11:40:12 -04:00

21 lines
512 B
Scala

import sbt.Keys._
import sbt._
object ProjectPlugin extends AutoPlugin {
override def trigger = allRequirements
override lazy val projectSettings = Seq(
scalaVersion := "2.13.5"
)
object autoImport {
implicit class ProjectOps(p: Project) {
def withCats: Project =
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.4.1")
def withTesting: Project =
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.7" % "test")
}
}
}