-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
26 lines (20 loc) · 1.24 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / crossScalaVersions := Seq("2.13.15", "3.3.4")
ThisBuild / organization := "com.permutive"
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
addCommandAlias("ci-test", "fix --check; versionPolicyCheck; mdoc; publishLocal; +test")
addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")
addCommandAlias("ci-publish", "versionCheck; github; ci-release")
lazy val documentation = project.enablePlugins(MdocPlugin)
lazy val `doobie-pureconfig` = module
.settings(libraryDependencies += "org.tpolecat" %% "doobie-core" % "1.0.0-RC5")
.settings(libraryDependencies += "org.tpolecat" %% "doobie-hikari" % "1.0.0-RC5")
.settings(libraryDependencies ++= scalaVersion.value.on(3)(`pureconfig-generic-scala3`))
.settings(libraryDependencies ++= scalaVersion.value.on(2)(`pureconfig-generic`))
.settings(libraryDependencies += "org.typelevel" %% "munit-cats-effect" % "2.0.0" % Test)
.settings(Test / fork := true)
//////////////////
// Dependencies //
//////////////////
def `pureconfig-generic-scala3` = "com.github.pureconfig" %% "pureconfig-generic-scala3" % "0.17.7"
def `pureconfig-generic` = "com.github.pureconfig" %% "pureconfig-generic" % "0.17.7"