-
Notifications
You must be signed in to change notification settings - Fork 41
/
build.sbt
95 lines (89 loc) · 3.47 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
import BuildHelper._
import explicitdeps.ExplicitDepsPlugin.autoImport.moduleFilterRemoveValue
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-keeper/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer("jdegoes", "John De Goes", "[email protected]", url("http://degoes.net")),
Developer("mijicd", "Dejan Mijic", "[email protected]", url("https://github.com/mijicd")),
Developer(
"pshemass",
"Przemyslaw Wierzbicki",
url("https://github.com/pshemass")
),
Developer(
"mschuwalow",
"Maxim Schuwalow",
url("https://github.com/mschuwalow")
)
),
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-keeper/"),
"scm:git:[email protected]:zio/zio-keeper.git"
)
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val root = project
.in(file("."))
.settings(crossScalaVersions := Seq(Scala212, Scala213))
.settings(skip in publish := true)
.aggregate(keeper, examples, docs)
lazy val keeper = project
.in(file("keeper"))
.settings(stdSettings("zio-keeper"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % ZioVersion,
"dev.zio" %% "zio-streams" % ZioVersion,
"dev.zio" %% "zio-nio" % NioVersion,
"dev.zio" %% "zio-nio-core" % NioVersion,
"dev.zio" %% "zio-logging" % ZioLoggingVersion,
"dev.zio" %% "zio-config" % ZioConfigVersion,
"com.lihaoyi" %% "upickle" % "1.2.3",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.5.0",
"dev.zio" %% "zio-test" % ZioVersion % Test,
"dev.zio" %% "zio-test-sbt" % ZioVersion % Test,
("com.github.ghik" % "silencer-lib" % "1.6.0" % Provided).cross(CrossVersion.full),
compilerPlugin(("com.github.ghik" % "silencer-plugin" % "1.6.0").cross(CrossVersion.full))
),
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
fork in test := true
)
lazy val examples = project
.in(file("examples"))
.settings(stdSettings("zio-keeper-examples"))
.dependsOn(keeper)
.settings(
fork := true,
scalacOptions --= Seq("-Ywarn-dead-code", "-Wdead-code"),
libraryDependencies ++= Seq(
"dev.zio" %% "zio-logging-slf4j" % ZioLoggingVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)
lazy val docs = project
.in(file("zio-keeper-docs"))
.settings(
publish / skip := true,
moduleName := "zio-keeper-docs",
scalaVersion := Scala213,
crossScalaVersions := Seq(Scala213),
mainModuleName := (keeper / moduleName).value,
projectName := "ZIO Keeper",
projectStage := ProjectStage.Experimental,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(),
checkArtifactBuildProcessWorkflowStep := None,
docsPublishBranch := "master"
)
.enablePlugins(WebsitePlugin)