mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-11-19 07:31:35 +00:00
21 lines
513 B
Scala
21 lines
513 B
Scala
import sbt.Keys._
|
|
import sbt._
|
|
|
|
object ProjectPlugin extends AutoPlugin {
|
|
override def trigger = allRequirements
|
|
|
|
override lazy val projectSettings = Seq(
|
|
scalaVersion := "2.13.6"
|
|
)
|
|
|
|
object autoImport {
|
|
implicit class ProjectOps(p: Project) {
|
|
def withCats: Project =
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.6.1")
|
|
|
|
def withTesting: Project =
|
|
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test")
|
|
}
|
|
}
|
|
}
|