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-14 20:49:53 +00:00
|
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.9.0")
|
2020-08-15 04:49:07 +00:00
|
|
|
|
2022-11-20 02:42:48 +00:00
|
|
|
def withTesting: Project = {
|
|
|
|
val weaverVersion =
|
|
|
|
"0.8.0"
|
|
|
|
|
|
|
|
p.settings(
|
|
|
|
testFrameworks += new TestFramework("weaver.framework.CatsEffect"),
|
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
"org.scalatest" %% "scalatest" % "3.2.14" % Test,
|
|
|
|
"com.disneystreaming" %% "weaver-cats" % weaverVersion % Test,
|
|
|
|
"com.disneystreaming" %% "weaver-scalacheck" % weaverVersion % Test
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
2020-08-13 01:10:19 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-21 03:45:13 +00:00
|
|
|
}
|