forked from witi83/freestyle-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
69 lines (66 loc) · 2.14 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
import sbtorgpolicies.model._
import sbtorgpolicies.templates.badges._
import sbtorgpolicies.runnable.syntax._
lazy val fsVersion = Option(sys.props("frees.version")).getOrElse("0.3.2-SNAPSHOT")
def fsDep(suffix: String): ModuleID = "io.frees" %% s"frees-$suffix" % fsVersion
lazy val docs = (project in file("."))
.settings(micrositeSettings: _*)
.settings(noPublishSettings: _*)
.settings(
name := "freestyle-docs",
description := "Freestyle Docs and Microsite",
orgScriptTaskListSetting := guard(scalaBinaryVersion.value == "2.12")("tut".asRunnableItem),
orgUpdateDocFilesSetting += baseDirectory.value / "src",
orgAfterCISuccessTaskListSetting := List(
orgUpdateDocFiles.asRunnableItem,
depUpdateDependencyIssues.asRunnableItem
) ++ guard(scalaBinaryVersion.value == "2.12" &&
!version.value.endsWith("-SNAPSHOT"))(defaultPublishMicrosite),
orgBadgeListSetting := List(
TravisBadge.apply,
LicenseBadge.apply,
// Gitter badge (owner field) can be configured with default value if we migrate it to the frees-io organization
{ info =>
GitterBadge.apply(info.copy(owner = "47deg", repo = "freestyle"))
},
GitHubIssuesBadge.apply
)
)
.settings(scalaMetaSettings: _*)
.settings(
resolvers ++= Seq(
Resolver.mavenLocal,
Resolver.bintrayRepo("kailuowang", "maven")
),
libraryDependencies ++= Seq(
fsDep("core"),
fsDep("tagless"),
fsDep("effects"),
fsDep("async"),
fsDep("async-monix"),
fsDep("async-fs2"),
fsDep("config"),
fsDep("logging"),
fsDep("cache"),
fsDep("cache-redis"),
fsDep("doobie"),
fsDep("fetch"),
fsDep("fs2"),
fsDep("http-akka"),
fsDep("http-finch"),
fsDep("http-http4s"),
fsDep("http-play"),
fsDep("monix"),
fsDep("slick"),
fsDep("twitter-util"),
%%("doobie-h2-cats"),
%%("http4s-dsl"),
%%("play"),
%("h2") % "test"
)
)
.settings(
scalacOptions in Tut ~= (_ filterNot Set("-Ywarn-unused-import", "-Xlint").contains)
)
.disablePlugins(CoursierPlugin)
.enablePlugins(MicrositesPlugin)