forked from typelevel/fs2
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.sbt
144 lines (110 loc) · 3.66 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
enablePlugins(GitVersioning)
organization := "org.scalaz.stream"
name := "scalaz-stream"
// this is equivalent to declaring compatibility checks
git.baseVersion := "0.8.1"
val ReleaseTag = """^release/([\d\.]+a?)$""".r
git.gitTagToVersionNumber := {
case ReleaseTag(version) => Some(version)
case _ => None
}
git.formattedShaVersion := {
val suffix = git.makeUncommittedSignifierSuffix(git.gitUncommittedChanges.value, git.uncommittedSignifier.value)
git.gitHeadCommit.value map { _.substring(0, 7) } map { sha =>
git.baseVersion.value + "-" + sha + suffix
}
}
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0")
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps",
// "-Xfatal-warnings", // this makes cross compilation impossible from a single source
"-Yno-adapted-args"
)
scalacOptions in (Compile, doc) ++= Seq(
"-doc-source-url", scmInfo.value.get.browseUrl + "/tree/master€{FILE_PATH}.scala",
"-sourcepath", baseDirectory.in(LocalRootProject).value.getAbsolutePath,
"-implicits",
"-implicits-show-all"
)
resolvers ++= Seq(Resolver.sonatypeRepo("releases"), Resolver.sonatypeRepo("snapshots"))
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.1.11",
"org.scalaz" %% "scalaz-concurrent" % "7.1.11",
"org.scodec" %% "scodec-bits" % "1.1.2",
"org.scalaz" %% "scalaz-scalacheck-binding" % "7.1.11" % "test",
"org.scalacheck" %% "scalacheck" % "1.12.6" % "test"
)
sonatypeProfileName := "org.scalaz"
publishMavenStyle := true
pomIncludeRepository := { _ => false }
pomExtra :=
<developers>
<developer>
<id>pchiusano</id>
<name>Paul Chiusano</name>
<url>https://pchiusano.github.io</url>
</developer>
<developer>
<id>pchlupacek</id>
<name>Pavel Chlupáček</name>
</developer>
<developer>
<id>djspiewak</id>
<name>Daniel Spiewak</name>
<url>http://www.codecommit.com</url>
</developer>
<developer>
<id>alissapajer</id>
<name>Alissa Pajer</name>
</developer>
<developer>
<id>fthomas</id>
<name>Frank S. Thomas</name>
</developer>
<developer>
<id>runarorama</id>
<name>Rúnar Ó. Bjarnason</name>
</developer>
<developer>
<id>jedws</id>
<name>Jed Wesley-Smith</name>
</developer>
</developers>
homepage := Some(url("https://github.com/scalaz/scalaz-stream"))
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
scmInfo := Some(ScmInfo(url("https://github.com/scalaz/scalaz-stream"),
"[email protected]:scalaz/scalaz-stream.git"))
osgiSettings
OsgiKeys.bundleSymbolicName := "org.scalaz.stream"
OsgiKeys.exportPackage := Seq("scalaz.stream.*")
OsgiKeys.importPackage := Seq(
"""scala.*;version="$<range;[===,=+);$<@>>"""",
"""scalaz.*;version="$<range;[===,=+);$<@>>"""",
"*"
)
val ignoredABIProblems = {
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters._
Seq()
}
lazy val mimaSettings = {
import com.typesafe.tools.mima.plugin.MimaKeys.{binaryIssueFilters, previousArtifact}
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
mimaDefaultSettings ++ Seq(
previousArtifact := MiMa.targetVersion(git.baseVersion.value).map(organization.value %% name.value % _),
binaryIssueFilters ++= ignoredABIProblems
)
}
mimaSettings
parallelExecution in Test := false
autoAPIMappings := true
apiURL := Some(url(s"http://docs.typelevel.org/api/scalaz-stream/stable/${version.value}/doc/"))
initialCommands := "import scalaz.stream._"
doctestWithDependencies := false
doctestSettings