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