/
build.sbt
63 lines (60 loc) · 1.95 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
import sbtorgpolicies.model._
import sbtorgpolicies.templates.badges._
import sbtorgpolicies.runnable.syntax._
lazy val fsVersion = "0.1.2-SNAPSHOT"
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),
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(
resolvers += Resolver.bintrayRepo("kailuowang", "maven"),
libraryDependencies ++= Seq(
%%("freestyle", fsVersion),
fsDep("tagless"),
fsDep("effects"),
fsDep("async"),
fsDep("async-monix"),
fsDep("async-fs2"),
fsDep("config"),
fsDep("logging"),
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)
def fsDep(suffix: String): ModuleID = %%(s"freestyle-$suffix", fsVersion) changing ()