This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sbt
53 lines (47 loc) · 1.83 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
import BuildHelper._
inThisBuild(
List(
organization := "dev.zio",
homepage := Some(url("https://zio.dev/zio-interop-guava")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"jdegoes",
"John De Goes",
url("http://degoes.net")
)
)
)
)
addCommandAlias("fix", "; all compile:scalafix test:scalafix; all scalafmtSbt scalafmtAll")
addCommandAlias("check", "; scalafmtSbtCheck; scalafmtCheckAll; compile:scalafix --check; test:scalafix --check")
val zioVersion = "2.0.10"
lazy val root =
project.in(file(".")).settings(publish / skip := true).aggregate(guava, docs)
lazy val guava = project
.in(file("zio-interop-guava"))
.enablePlugins(BuildInfoPlugin)
.settings(stdSettings("zio-interop-guava"))
.settings(buildInfoSettings("zio.interop.guava"))
.settings(testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework"))
.settings(
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"com.google.guava" % "guava" % "31.1-jre",
"dev.zio" %% "zio-test" % zioVersion % Test,
"dev.zio" %% "zio-test-sbt" % zioVersion % Test
)
)
.enablePlugins(BuildInfoPlugin)
lazy val docs = project
.in(file("zio-interop-guava-docs"))
.settings(
moduleName := "zio-interop-guava-docs",
projectName := "ZIO Interop Guava",
mainModuleName := (guava / moduleName).value,
projectStage := ProjectStage.ProductionReady,
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(guava),
docsPublishBranch := "master"
)
.enablePlugins(WebsitePlugin)