This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
120 lines (111 loc) · 3.82 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
import BuildHelper._
import sbt.Keys.semanticdbEnabled
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.github.io/zio-gcp/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"mikail-khan",
"Mika'il Khan",
url("https://github.com/mikail-khan")
)
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-gcp/"), "scm:git:[email protected]:zio/zio-gcp.git")
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions += "-Ywarn-unused-import"
)
)
addCompilerPlugin(scalafixSemanticdb)
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheckAll")
addCommandAlias("fix", "all compile:scalafix test:scalafix")
addCommandAlias(
"fixCheck",
"; compile:scalafix --check ; test:scalafix --check"
)
lazy val root = project
.in(file("."))
.settings(skip in publish := true)
.aggregate(
core,
firestore,
pubsub,
storage,
redis
)
lazy val core = project
.in(file("modules/core"))
.settings(stdSettings("zio-gcp-core"))
.settings(buildInfoSettings("zio.gcp.core"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
)
)
.enablePlugins(BuildInfoPlugin)
lazy val firestore = project
.in(file("modules/firestore"))
.dependsOn(core)
.settings(stdSettings("zio-gcp-firestore"))
.settings(buildInfoSettings("zio.gcp.firestore"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"dev.zio" %% "zio-interop-guava" % "29.0.0.0",
"com.google.cloud" % "google-cloud-firestore" % "1.32.4",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
)
)
.enablePlugins(BuildInfoPlugin)
lazy val pubsub = project
.in(file("modules/pubsub"))
.dependsOn(core)
.settings(stdSettings("zio-gcp-pubsub"))
.settings(buildInfoSettings("zio.gcp.pubsub"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"dev.zio" %% "zio-interop-guava" % "28.2.0.1",
"com.google.cloud" % "google-cloud-pubsub" % "1.107.0",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
)
)
.enablePlugins(BuildInfoPlugin)
lazy val storage = project
.in(file("modules/storage"))
.dependsOn(core)
.settings(stdSettings("zio-gcp-storage"))
.settings(buildInfoSettings("zio.gcp.storage"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"dev.zio" %% "zio-interop-guava" % "28.2.0.1",
"com.google.cloud" % "google-cloud-storage" % "1.109.1",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
)
)
.enablePlugins(BuildInfoPlugin)
lazy val redis = project
.in(file("modules/redis"))
.dependsOn(core)
.settings(stdSettings("zio-gcp-redis"))
.settings(buildInfoSettings("zio.gcp.redis"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % "1.0.0-RC21",
"dev.zio" %% "zio-interop-guava" % "28.2.0.1",
"com.google.cloud" % "google-cloud-redis" % "1.0.0",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.6"
)
)
.enablePlugins(BuildInfoPlugin)