-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
79 lines (71 loc) · 2.34 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import Dependencies._
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)
lazy val common = List()
lazy val scala212 = "2.12.17"
lazy val scala213 = "2.13.10"
//lazy val scala34 = "3.4.2"
lazy val supportedScalaVersions = List(scala213)
ThisBuild / scalaVersion := scala213
ThisBuild / organization := "com.yarhrn"
ThisBuild / homepage := Some(url("https://github.com/yarhrn/loco"))
ThisBuild / scmInfo := Some(ScmInfo(url("https://github.com/yarhrn/loco"), "[email protected]:yarhrn/loco.git"))
ThisBuild / developers := List(
Developer("Yaroslav Hryniuk", "Yaroslav Hryniuk", "[email protected]", url("https://github.com/yarhrn")))
ThisBuild / licenses += ("MIT", url("https://github.com/yarhrn/loco/blob/master/LICENSE"))
ThisBuild / publishMavenStyle := true
releaseTagName := s"${if (releaseUseGlobalVersion.value) (ThisBuild / version).value else version.value}"
lazy val loco = project
.settings(
crossScalaVersions := Nil,
publish / skip := true,
common
)
.in(file("."))
.aggregate(
core,
doobie,
example
)
lazy val core = (project in file("core")).settings(
crossScalaVersions := supportedScalaVersions,
name := "loco-core",
libraryDependencies ++= Seq(
scalaTest,
scalaMock,
fs2Core,
catsEffect,
jsoniter,
jsoniterMacros,
catsEffectStd
),
common
)
lazy val example = (project in file("example"))
.settings(
name := "loco-example",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(scalaTest, scalaMock),
publish / skip := true,
common
)
.dependsOn(core % "test->test;compile->compile")
lazy val doobie = (project in file("doobie"))
.settings(
name := "loco-doobie",
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= Seq(doobieCore, scalaTest, scalaMock, postgresql, embeddedPostgresql),
common
)
.dependsOn(core % "test->test;compile->compile")