forked from cphylabs/jerkson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
107 lines (83 loc) · 2.31 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
/* basic project info */
name := "jerkson"
organization := "org.cphylabs"
version := "0.6.4-SNAPSHOT"
licenses := Seq(
("The MIT License", url("http://codahale.com/mit.txt"))
)
homepage := Some(url("https://github.com/cphylabs/jerkson"))
scmInfo := Some(
ScmInfo(
url("https://github.com/cphylabs/jerkson"),
"scm:git:https://github.com/cphylabs/jerkson.git",
Some("scm:git:[email protected]:cphylabs/jerkson.git")
)
)
/* scala versions and options */
scalaVersion := "2.10.1"
/* scala versions and options */
crossScalaVersions := Seq("2.10.4", "2.11.6")
// These options will be used for *all* versions.
scalacOptions ++= Seq(
// "-deprecation",
"-unchecked",
"-encoding", "UTF-8",
"-optimise"
)
scalacOptions ++= Seq(
"-Yclosure-elim",
"-Yinline"
)
// These language flags will be used only for 2.10.x.
// Uncomment those you need, or if you hate SIP-18, all of them.
scalacOptions <++= scalaVersion map { sv =>
if ((sv startsWith "2.10") || (sv startsWith "2.11")) List(
// "-Xverify",
// "-Ywarn-all",
"-feature",
"-language:postfixOps",
"-language:reflectiveCalls",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials"
)
else Nil
}
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
/* dependencies */
libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-core" % "2.0.2",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.0.2"
)
libraryDependencies <+= scalaVersion {
"org.scala-lang" % "scala-reflect" % _
}
resolvers ++= Seq(
"Local Maven" at Path.userHome.asFile.toURI.toURL + ".m2/repository"
)
/* testing */
parallelExecution in Test := false
/* sbt behavior */
logLevel in compile := Level.Warn
traceLevel := 5
offline := false
/* publishing */
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some(
"snapshots" at nexus + "content/repositories/snapshots"
)
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<developers>
<developer>
<id>cphylabs</id>
<name>CloudPhysics Inc</name>
<email>[email protected]</email>
</developer>
</developers>
)