-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
67 lines (50 loc) · 1.54 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
enablePlugins(ParadoxPlugin)
enablePlugins(ParadoxSitePlugin)
enablePlugins(GhpagesPlugin)
scalaVersion := "2.13.15"
git.remoteRepo := "[email protected]:unfiltered/unfiltered.github.io.git"
com.github.sbt.git.SbtGit.GitKeys.gitBranch := Some("master")
licenses := Seq("MIT" -> url("https://www.opensource.org/licenses/MIT"))
def unfilteredVersion = "0.12.1"
version := unfilteredVersion
Paradox / paradoxProperties ++= Map(
"version" -> unfilteredVersion,
"extref.unidoc.base_url" -> {
// can't use @scaladoc due to https://github.com/lightbend/paradox/pull/77
val sonatype = "https://oss.sonatype.org/service/local/repositories/releases/archive"
val artifactId = "unfiltered-all_2.13"
s"${sonatype}/ws/unfiltered/${artifactId}/${unfilteredVersion}/${artifactId}-${unfilteredVersion}-javadoc.jar/!/%s.html"
}
)
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19"
libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % "always"
libraryDependencies ++= Seq(
"netty-uploads",
"filter-uploads",
"specs2",
"scalatest",
"filter-async",
"agents",
"directives",
"json4s"
).map{ m =>
"ws.unfiltered" %% s"unfiltered-${m}" % unfilteredVersion
}
paradoxTheme := Some(builtinParadoxTheme("generic"))
scalacOptions ++= Seq(
"-Xcheckinit",
"-encoding",
"utf8",
"-deprecation",
"-unchecked",
"-feature",
"-Xsource:3",
)
val unusedWarnings = (
"-Ywarn-unused:imports" ::
Nil
)
scalacOptions ++= unusedWarnings
Seq(Compile, Test).flatMap(c =>
c / console / scalacOptions --= unusedWarnings
)