-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
81 lines (74 loc) · 2.6 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
import Dependencies._
// Flags
Global / semanticdbEnabled := true
Global / onChangedBuildSource := ReloadOnSourceChanges
Global / scalacOptions := Seq(
"-Ywarn-unused",
"-Werror",
"-feature",
"-language:reflectiveCalls",
"-deprecation",
)
Global / scalaVersion := "2.13.8"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches += RefPredicate.StartsWith(Ref.Tag("v"))
ThisBuild / githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release")))
ThisBuild / githubWorkflowPublish := Seq(WorkflowStep.Sbt(
List("ci-release"),
env = Map(
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
"SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}",
"SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}",
),
))
inThisBuild(List(
organization := "com.tusharmath",
homepage := Some(url("https://github.com/tusharmath/zio-compose")),
licenses := List("MIT" -> url("https://github.com/tusharmath/zio-compose/blob/main/LICENSE")),
developers := List(
Developer("tusharmath", "Tushar Mathur", "tusharmath@gmail.com", url("https://tusharmath.com")),
),
))
// Projects
lazy val root = (project in file("."))
.aggregate(zioCompose, zioComposeMacros, zioComposeExamples, zioComposeGraphQL)
.settings(name := "root", publish / skip := true)
lazy val zioCompose = project.in(file("./compose")).settings(
name := "zio-compose",
libraryDependencies := Netty ++ Seq(
ZIOCore,
ZIOSchema,
ZIOSchemaJson,
ZIOSchemaDerivation,
ZIOTest,
ZIOTestSbt,
),
).dependsOn(zioComposeMacros)
lazy val zioComposeMacros = project.in(file("./compose-macros")).settings(
name := "zio-compose-macros",
libraryDependencies := Seq(
ZIOSchema,
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
),
)
lazy val zioComposeExamples = project.in(file("./compose-examples"))
.dependsOn(zioCompose, zioComposeMacros)
.settings(name := "zio-compose-examples", publish / skip := true)
lazy val zioComposeGraphQL = project.in(file("./compose-graphql"))
.dependsOn(zioCompose, zioComposeMacros).settings(
name := "zio-compose-graphql",
publish / skip := true,
libraryDependencies := Seq(
ZIOCore,
ZIOSchema,
ZIOSchemaJson,
ZIOSchemaDerivation,
ZIOTest,
ZIOTestSbt,
PPrint,
Caliban
),
)