2020-03-20 23:45:13 -04:00
|
|
|
import sbt.Keys._
|
|
|
|
import sbt._
|
|
|
|
|
|
|
|
object ProjectPlugin extends AutoPlugin {
|
|
|
|
override def trigger = allRequirements
|
|
|
|
|
2022-02-14 12:27:25 -05:00
|
|
|
val autoImport = ThingsToImport
|
2020-08-12 21:10:19 -04:00
|
|
|
|
2022-02-14 12:27:25 -05:00
|
|
|
object ThingsToImport {
|
2020-08-12 21:10:19 -04:00
|
|
|
implicit class ProjectOps(p: Project) {
|
|
|
|
def withCats: Project =
|
2021-05-14 22:23:09 -04:00
|
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.6.1")
|
2020-08-15 00:49:07 -04:00
|
|
|
|
|
|
|
def withTesting: Project =
|
2022-05-10 22:48:25 -04:00
|
|
|
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.12" % "test")
|
2020-08-12 21:10:19 -04:00
|
|
|
}
|
|
|
|
}
|
2020-03-20 23:45:13 -04:00
|
|
|
}
|