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 =
|
2022-11-02 21:02:51 +00:00
|
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.8.0")
|
2020-08-15 04:49:07 +00:00
|
|
|
|
|
|
|
def withTesting: Project =
|
2022-08-03 02:31:44 +00:00
|
|
|
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.13" % "test")
|
2020-08-13 01:10:19 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-21 03:45:13 +00:00
|
|
|
}
|