-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
50 lines (44 loc) · 1.29 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
lazy val versions = new {
val smithy4s = "0.18.23"
val alloy = "0.3.11"
}
val production: Seq[ModuleID] = Seq(
"com.disneystreaming.alloy" % "alloy-core" % versions.alloy,
"com.disneystreaming.smithy4s" %% "smithy4s-http4s" % versions.smithy4s,
"com.disneystreaming.smithy4s" %% "smithy4s-json" % versions.smithy4s,
"com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % "2.30.7" % "provided"
)
val settings = Seq(
organization := "com.myapiz",
scalaVersion := "3.4.2",
libraryDependencies ++= production,
Test / publishArtifact := false
)
val publishSettings = Seq(
releaseVersionFile := file("version.sbt"),
publishMavenStyle := true,
githubTokenSource := TokenSource.Environment("GITHUB_TOKEN"),
githubOwner := "myapiz",
githubRepository := "smithy"
)
lazy val model = (project in file("model"))
.settings(
Seq(
scalaVersion := "3.4.2",
autoScalaLibrary := false
) ++ publishSettings
)
lazy val smithy4s =
(project in file("smithy4s"))
.enablePlugins(Smithy4sCodegenPlugin)
.dependsOn(model)
.settings(settings ++ publishSettings)
.configs(Test)
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
Seq(
publishArtifact := false
) ++ publishSettings
)
.aggregate(model, smithy4s)