forked from qifun/stateless-future
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
57 lines (41 loc) · 1.61 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
organization := "com.qifun"
name := "stateless-future"
version := "0.4.1-SNAPSHOT"
libraryDependencies <+= (scalaVersion) { sv =>
"org.scala-lang" % "scala-reflect" % sv
}
libraryDependencies += "junit" % "junit-dep" % "4.10" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"
scalacOptions ++= Seq("-optimize", "-unchecked", "-Xlint", "-feature")
scalacOptions <++= (scalaVersion) map { sv =>
if (sv.startsWith("2.10.")) {
Seq("-deprecation") // Fully compatible with 2.10.x
} else {
Seq() // May use deprecated API in 2.11.x
}
}
incOptions := incOptions.value.withNameHashing(true)
crossScalaVersions := Seq("2.10.4", "2.11.2")
description := "The rubost asynchronous programming facility for Scala that offers a direct API for working with Futures."
homepage := Some(url("https://github.com/qifun/stateless-future"))
startYear := Some(2014)
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
publishTo <<= (isSnapshot) { isSnapshot: Boolean =>
if (isSnapshot)
Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
scmInfo := Some(ScmInfo(
url("https://github.com/qifun/stateless-future"),
"scm:git:git://github.com/qifun/stateless-future.git",
Some("scm:git:git@github.com:qifun/stateless-future.git")))
pomExtra :=
<developers>
<developer>
<id>Atry</id>
<name>杨博</name>
<timezone>+8</timezone>
<email>pop.atry@gmail.com</email>
</developer>
</developers>