mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-11-15 12:07:50 +00:00
19 lines
475 B
Scala
19 lines
475 B
Scala
import sbt.Keys._
|
|
import sbt._
|
|
|
|
object ProjectPlugin extends AutoPlugin {
|
|
override def trigger = allRequirements
|
|
|
|
val autoImport = ThingsToImport
|
|
|
|
object ThingsToImport {
|
|
implicit class ProjectOps(p: Project) {
|
|
def withCats: Project =
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.8.0")
|
|
|
|
def withTesting: Project =
|
|
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.14" % "test")
|
|
}
|
|
}
|
|
}
|