forked from http4s/http4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
145 lines (102 loc) · 3.72 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import Http4sBuild._
import Http4sKeys._
import Http4sDependencies._
import sbtunidoc.Plugin.UnidocKeys._
lazy val core = project
lazy val server = project.dependsOn(core % "compile;test->test")
lazy val client = project.dependsOn(core % "compile;test->test", server % "test->compile")
lazy val `blaze-core` = project.dependsOn(core)
lazy val `blaze-server` = project.dependsOn(`blaze-core` % "compile;test->test", server)
lazy val `blaze-client` = project.dependsOn(`blaze-core` % "compile;test->test", client % "compile;test->test")
lazy val servlet = project.dependsOn(server)
lazy val jetty = project.dependsOn(servlet)
lazy val tomcat = project.dependsOn(servlet)
lazy val dsl = project.dependsOn(core % "compile;test->test", server % "test->compile")
lazy val json4s = project.dependsOn(core)
lazy val `json4s-native` = project.dependsOn(json4s)
lazy val `json4s-jackson` = project.dependsOn(json4s)
lazy val argonaut = project.dependsOn(core % "compile;test->test")
lazy val examples = project.dependsOn(`blaze-server`, jetty, tomcat, dsl, `json4s-jackson`)
organization in ThisBuild := "org.http4s"
name := "http4s"
version in ThisBuild := "0.4.0-SNAPSHOT"
apiVersion in ThisBuild <<= version.map(extractApiVersion)
description := "A minimal, Scala-idiomatic library for HTTP"
homepage in ThisBuild := Some(url("https://github.com/http4s/http4s"))
startYear in ThisBuild := Some(2013)
licenses in ThisBuild := Seq(
"Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
scmInfo in ThisBuild := {
val base = "github.com/http4s/http4s"
Some(ScmInfo(url(s"https://$base"), s"scm:git:https://$base", Some(s"scm:git:git@$base")))
}
pomExtra in ThisBuild := (
<developers>
<developer>
<id>rossabaker</id>
<name>Ross A. Baker</name>
<email>[email protected]</email>
</developer>
<developer>
<id>casualjim</id>
<name>Ivan Porto Carrero</name>
<email>[email protected]</email>
<url>http://flanders.co.nz</url>
</developer>
<developer>
<id>brycelane</id>
<name>Bryce L. Anderson</name>
<email>[email protected]</email>
</developer>
<developer>
<id>before</id>
<name>André Rouél</name>
</developer>
</developers>
)
scalaVersion in ThisBuild := "2.10.4"
crossScalaVersions in ThisBuild := Seq(
"2.10.4",
"2.11.4"
)
val JvmTarget = "1.7"
scalacOptions in ThisBuild ++= Seq(
"-deprecation",
"-feature",
"-language:implicitConversions",
"-language:higherKinds",
s"-target:jvm-${JvmTarget}",
"-unchecked",
"-Xlint"
)
javacOptions in ThisBuild ++= Seq(
"-source", JvmTarget,
"-target", JvmTarget,
"-Xlint:deprecation",
"-Xlint:unchecked"
)
resolvers in ThisBuild ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)
/* These test dependencies applied to all projects under the http4s umbrella */
libraryDependencies in ThisBuild ++= Seq(
scalameter % "test",
scalazScalacheckBinding % "test",
scalazSpecs2 % "test"
)
logLevel := Level.Warn
ivyLoggingLevel in (ThisBuild, update) := UpdateLogging.DownloadOnly
publishMavenStyle in ThisBuild := true
publishTo in ThisBuild <<= version(v => Some(nexusRepoFor(v)))
publishArtifact in (ThisBuild, Test) := false
// Don't publish root pom. It's not needed.
packagedArtifacts in file(".") := Map.empty
credentials ++= travisCredentials.toSeq
unidocSettings
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject -- inProjects(examples)
// autoAPIMappings is not respected by Unidoc
apiMappings in ThisBuild += (scalaInstance.value.libraryJar -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/"))
Http4sSite.settings