-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
129 lines (116 loc) · 3.89 KB
/
build.sbt
File metadata and controls
129 lines (116 loc) · 3.89 KB
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
val ver = "3.7.3"
ThisBuild / scalaVersion := ver
ThisBuild / crossScalaVersions := Seq(ver /*, "3.3.0"*/ )
ThisBuild / organization := "io.github.casehubdk"
ThisBuild / organizationName := "CaseHubDK"
ThisBuild / tlBaseVersion := "0.0"
ThisBuild / tlSonatypeUseLegacyHost := false
ThisBuild / tlUntaggedAreSnapshots := false
ThisBuild / tlCiMimaBinaryIssueCheck := false
ThisBuild / tlMimaPreviousVersions := Set.empty
ThisBuild / mimaReportSignatureProblems := false
ThisBuild / mimaFailOnProblem := false
ThisBuild / mimaPreviousArtifacts := Set.empty
ThisBuild / licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
ThisBuild / developers := List(
Developer("valdemargr", "Valdemar Grange", "randomvald0069@gmail.com", url("https://github.com/valdemargr"))
)
lazy val sharedSettings = Seq(
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.9.0",
"org.scalameta" %% "munit" % "1.0.0-M6" % Test,
"org.typelevel" %% "munit-cats-effect" % "2.0.0-M3" % Test
)
)
lazy val proto = project
.in(file("proto"))
.enablePlugins(Fs2Grpc)
.settings(
name := "spice4s-client-proto-api",
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
),
scalapbCodeGeneratorOptions ++= Seq(
CodeGeneratorOption.Scala3Sources,
CodeGeneratorOption.NoLenses
),
// scalapbCodeGenerators := scalapbCodeGenerators.value /* ++ Seq(
// protocbridge.Target(scalapb.validate.gen(), (Compile / sourceManaged).value / "scalapb")
// )*/,
libraryDependencies ++= Seq(
/* "com.thesamet.scalapb" %% "scalapb-validate-core" % scalapb.validate.compiler.BuildInfo.version % "protobuf", */
"com.thesamet.scalapb.common-protos" %% "pgv-proto-scalapb_0.11" % "0.6.13-0",
"com.thesamet.scalapb.common-protos" %% "pgv-proto-scalapb_0.11" % "0.6.13-0" % "protobuf",
"com.thesamet.scalapb.common-protos" %% "proto-google-common-protos-scalapb_0.11" % "2.9.6-0" % "protobuf",
"com.thesamet.scalapb.common-protos" %% "proto-google-common-protos-scalapb_0.11" % "2.9.6-0"
),
tlFatalWarningsInCi := false,
excludeDependencies ++= Seq(
ExclusionRule("com.thesamet.scalapb", "scalapb-validate-core_2.13")
)
)
lazy val client = project
.in(file("client"))
.settings(sharedSettings)
.dependsOn(proto)
.settings(
name := "spice4s-client",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.1",
"co.fs2" %% "fs2-core" % "3.7.0"
)
)
lazy val testkit = project
.in(file("testkit"))
.settings(sharedSettings)
.dependsOn(proto)
.dependsOn(client)
.settings(name := "spice4s-testkit")
lazy val generatorCore = project
.in(file("generator-core"))
.settings(sharedSettings)
.dependsOn(client)
.settings(
name := "spice4s-generator-core"
)
lazy val encoder = project
.in(file("encoder"))
.settings(sharedSettings)
.dependsOn(client)
.settings(
name := "spice4s-encoder"
)
lazy val parser = project
.in(file("parser"))
.settings(sharedSettings)
.settings(
name := "spice4s-parser",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-parse" % "0.3.9"
)
)
lazy val generator = project
.in(file("generator"))
.settings(sharedSettings)
.dependsOn(parser)
.dependsOn(client)
.settings(
name := "spice4s-generator",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-effect" % "3.5.1",
"co.fs2" %% "fs2-core" % "3.7.0",
"co.fs2" %% "fs2-io" % "3.7.0",
"org.scalameta" %% "scalameta" % "4.14.1",
"org.typelevel" %% "cats-mtl" % "1.3.0"
)
)
lazy val generatorCli = project
.in(file("generator-cli"))
.dependsOn(generator)
.settings(
name := "spice4s-generator-cli",
libraryDependencies ++= Seq(
"com.monovore" %% "decline" % "2.4.1",
"com.monovore" %% "decline-effect" % "2.4.1"
)
)