2020-03-20 23:45:13 -04:00
|
|
|
import sbt.Keys._
|
|
|
|
import sbt._
|
|
|
|
|
|
|
|
object ProjectPlugin extends AutoPlugin {
|
|
|
|
override def trigger = allRequirements
|
|
|
|
|
|
|
|
override lazy val projectSettings = Seq(
|
2020-06-25 20:00:41 -04:00
|
|
|
scalaVersion := "2.13.3"
|
2020-03-20 23:45:13 -04:00
|
|
|
)
|
2020-08-12 21:10:19 -04:00
|
|
|
|
|
|
|
object autoImport {
|
|
|
|
implicit class ProjectOps(p: Project) {
|
|
|
|
def withCats: Project =
|
2020-08-15 01:32:27 -04:00
|
|
|
p.settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.2.0-RC2")
|
2020-08-15 00:49:07 -04:00
|
|
|
|
|
|
|
def withTesting: Project =
|
|
|
|
p.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.1" % "test")
|
2020-08-12 21:10:19 -04:00
|
|
|
}
|
|
|
|
}
|
2020-03-20 23:45:13 -04:00
|
|
|
}
|