-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
66 lines (57 loc) · 2.06 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
import BuildHelper._
inThisBuild(
List(
developers := List(
Developer(
"soujiro32167",
"Eli Kasik",
url("https://github.com/soujiro32167")
)
),
)
)
ThisBuild / publishTo := sonatypePublishToBundle.value
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
val zioVersion = "1.0.0-RC20"
val http4sVersion = "0.21.4"
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-macros" % zioVersion,
"dev.zio" %% "zio-interop-cats" % "2.1.3.0-RC15",
"dev.zio" %% "zio-streams" % zioVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.jsoup" % "jsoup" % "1.12.1",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.log4s" %% "log4s" % "1.8.2",
"dev.zio" %% "zio-test" % zioVersion % "test",
"dev.zio" %% "zio-test-sbt" % zioVersion % "test"
)
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework"))
lazy val root =
(project in file("."))
.settings(
stdSettings("miron-scrape"),
scalacOptions += "-Ymacro-annotations"
)
.settings(buildInfoSettings("scrape"))
.enablePlugins(BuildInfoPlugin)
lazy val docs = project
.in(file("miron-scrape-docs"))
.settings(
skip.in(publish) := true,
moduleName := "miron-scrape-docs",
scalacOptions -= "-Yno-imports",
scalacOptions -= "-Xfatal-warnings",
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion
),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(root),
target in (ScalaUnidoc, unidoc) := (baseDirectory in LocalRootProject).value / "website" / "static" / "api",
cleanFiles += (target in (ScalaUnidoc, unidoc)).value,
docusaurusCreateSite := docusaurusCreateSite.dependsOn(unidoc in Compile).value,
docusaurusPublishGhpages := docusaurusPublishGhpages.dependsOn(unidoc in Compile).value
)
.dependsOn(root)
.enablePlugins(MdocPlugin, DocusaurusPlugin, ScalaUnidocPlugin)