-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
56 lines (53 loc) · 1.93 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
val http4sVersion = "1.0.0-M30"
inThisBuild(
Seq(
organization := "no.scalabin.http4s",
crossScalaVersions := Seq("2.13.8", "2.12.15", "3.1.0"),
scalaVersion := crossScalaVersions.value.head,
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-unchecked",
"-encoding",
"utf-8",
"-language:higherKinds"
),
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion % Test,
"org.http4s" %% "http4s-blaze-client" % http4sVersion % Test,
"org.scalatest" %% "scalatest" % "3.2.10" % Test
)
)
)
lazy val root = (project in file(".")).settings(
name := "http4s-directives",
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) =>
Seq(compilerPlugin("org.typelevel" % "kind-projector" % "0.13.2" cross CrossVersion.full))
case _ => Nil
}),
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => Seq("-Ykind-projector")
case Some((2, v)) if v <= 12 => Seq("-Ypartial-unification")
case _ => Seq.empty
})
)
lazy val mdoc = (project in file("mdoc"))
.settings(
micrositeName := "http4s-directives",
micrositeDescription := "Directives for http4s",
micrositeAuthor := "scalabin-no",
micrositeOrganizationHomepage := "https://http4s-directives.scalabin.no",
micrositeDocumentationUrl := "docs/",
micrositeGithubOwner := "scalabin-no",
micrositeGithubRepo := "http4s-directives",
micrositeHighlightTheme := "tomorrow",
micrositeShareOnSocial := false,
micrositeGitterChannel := false,
mdocIn := baseDirectory.value / "docs",
publishArtifact := false
)
.dependsOn(root)
.enablePlugins(MicrositesPlugin)