This repository has been archived by the owner on Aug 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
67 lines (52 loc) · 1.75 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
name := "gcloud-zio"
version := "0.1"
scalaVersion := "2.13.3"
lazy val scala213 = "2.13.3"
lazy val scala212 = "2.12.11"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / organization := "com.chilipiper"
ThisBuild / scalaVersion := scala213
val publishSettings = Seq(
bintrayRepository := "gcloud-zio",
bintrayOrganization := Some("chili-piper"),
bintrayReleaseOnPublish := true,
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
)
val dontPublishSettings = Seq(
publish := { },
bintrayReleaseOnPublish := false,
)
val zioDeps = Seq(
"dev.zio" %% "zio" % "1.0.1",
"dev.zio" %% "zio-streams" % "1.0.1"
)
lazy val root = (project in file("."))
.aggregate(common, pubsub, scheduler, tasks)
.settings(
crossScalaVersions := Nil,
publish / skip := true
)
lazy val common = Project("gcloud-zio-common", file("common"))
.settings(
publishSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies ++= zioDeps,
)
lazy val pubsub = Project("gcloud-zio-pubsub", file("pubsub"))
.settings(
publishSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.96.0",
).dependsOn(common)
lazy val scheduler = Project("gcloud-zio-scheduler", file("scheduler"))
.settings(
dontPublishSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "1.22.2",
).dependsOn(common)
lazy val tasks = Project("gcloud-zio-tasks", file("tasks"))
.settings(
publishSettings,
crossScalaVersions := supportedScalaVersions,
libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.28.2",
).dependsOn(common)