-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
133 lines (117 loc) · 4.69 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.0" // your current series x.y
ThisBuild / organization := "com.permutive"
ThisBuild / organizationName := "Permutive"
ThisBuild / startYear := Some(2022)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("janstenpickle", "Chris Jansen")
)
// publish to s01.oss.sonatype.org (set to true to publish to oss.sonatype.org instead)
ThisBuild / tlSonatypeUseLegacyHost := true
val Bigtable = "2.17.1"
val CatsEffect = "3.4.2"
val Cats = "2.9.0"
val Munit = "0.7.29"
val MunitCE3 = "1.0.7"
val Pureconfig = "0.17.2"
val ScalacheckEffect = "1.0.4"
val Scala213 = "2.13.10"
ThisBuild / crossScalaVersions := Seq("2.12.14", Scala213, "3.2.1")
ThisBuild / scalaVersion := Scala213 // the default Scala
lazy val root =
tlCrossRootProject
.aggregate(
functionalGax,
functionalGoogleCloudBigtable,
functionalGoogleCloudBigtablePureconfig,
functionalGoogleCloudBigtableTrace4Cats,
testkitMunitBigtable
)
lazy val functionalGax = project
.in(file("functional-gax"))
.settings(
name := "functional-gax",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % Cats,
"org.typelevel" %%% "cats-effect-std" % CatsEffect,
"co.fs2" %%% "fs2-core" % "3.2.14",
"com.google.api" % "gax" % "2.20.1",
"org.typelevel" %%% "cats-effect" % CatsEffect % Test,
"org.typelevel" %%% "cats-effect-testkit" % CatsEffect % Test,
"org.scalameta" %%% "munit" % Munit % Test,
"org.typelevel" %%% "munit-cats-effect-3" % MunitCE3 % Test,
"org.typelevel" %%% "scalacheck-effect-munit" % ScalacheckEffect % Test
),
libraryDependencies ++= PartialFunction
.condOpt(CrossVersion.partialVersion(scalaVersion.value)) { case Some((2, 12)) =>
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.8.1"
}
.toList
)
.dependsOn(testkitMunitBigtable % "test->compile")
lazy val functionalGoogleCloudBigtable = project
.in(file("functional-google-cloud-bigtable"))
.settings(
name := "functional-google-cloud-bigtable",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % Cats,
"org.typelevel" %%% "cats-effect-std" % CatsEffect,
"com.google.cloud" % "google-cloud-bigtable" % Bigtable,
"com.comcast" %%% "ip4s-core" % "3.2.0",
"com.permutive" %%% "gcp-types" % "1.0.0-RC1",
"org.typelevel" %%% "cats-effect" % CatsEffect % Test,
"org.typelevel" %%% "cats-effect-testkit" % CatsEffect % Test,
"org.scalameta" %%% "munit" % Munit % Test,
"org.typelevel" %%% "munit-cats-effect-3" % MunitCE3 % Test,
"org.typelevel" %%% "scalacheck-effect-munit" % ScalacheckEffect % Test
),
libraryDependencies ++= PartialFunction
.condOpt(CrossVersion.partialVersion(scalaVersion.value)) { case Some((2, 12)) =>
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.8.1" % Test
}
.toList
)
.dependsOn(functionalGax, testkitMunitBigtable % "test->compile")
lazy val functionalGoogleCloudBigtablePureconfig = project
.in(file("functional-google-cloud-bigtable-pureconfig"))
.settings(
name := "functional-google-cloud-bigtable-pureconfig",
libraryDependencies ++= Seq(
"com.github.pureconfig" %%% "pureconfig-core" % Pureconfig
),
libraryDependencies ++= {
if (tlIsScala3.value) Seq.empty
else Seq("com.github.pureconfig" %%% "pureconfig-generic" % Pureconfig)
}
)
.dependsOn(functionalGoogleCloudBigtable)
lazy val functionalGoogleCloudBigtableTrace4Cats = project
.in(file("functional-google-cloud-bigtable-trace4cats"))
.settings(
name := "functional-google-cloud-bigtable-trace4cats",
libraryDependencies ++= Seq(
"io.janstenpickle" %%% "trace4cats-core" % "0.14.1"
)
)
.dependsOn(functionalGoogleCloudBigtable)
lazy val testkitMunitBigtable = project
.in(file("testkit-munit-bigtable"))
.settings(
name := "testkit-munit-bigtable",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % Cats,
"org.typelevel" %%% "cats-effect" % CatsEffect,
"org.typelevel" %% "cats-effect-testkit" % CatsEffect,
"org.scalameta" %%% "munit" % Munit,
"org.typelevel" %%% "munit-cats-effect-3" % MunitCE3,
"com.google.cloud" % "google-cloud-bigtable" % Bigtable,
"com.google.cloud" % "google-cloud-bigtable-emulator" % "0.154.1"
),
libraryDependencies ++= PartialFunction
.condOpt(CrossVersion.partialVersion(scalaVersion.value)) { case Some((2, 12)) =>
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.8.1" % Test
}
.toList
)