-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
66 lines (48 loc) · 1.69 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
name := "Uniscala JSON"
organization := "net.uniscala"
version := "0.5-SNAPSHOT"
description := "A compact JSON library written in Scala."
startYear := Some(2012)
homepage := Some(url("https://github.com/stainsby/uniscala-json"))
organizationName := "Sustainable Software Pty Ltd"
organizationHomepage := Some(url("http://www.sustainablesoftware.com.au/"))
licenses := Seq(
("The Apache Software License, Version 2.0" ->
url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
)
scmInfo := Some(
ScmInfo(
url("https://github.com/stainsby/uniscala-json"),
"[email protected]:stainsby/uniscala-json.git"
)
)
pomExtra := (
<developers>
<developer>
<id>stainsby</id>
<name>Sam Stainsby</name>
<email>[email protected]</email>
</developer>
</developers>
)
scalaVersion := "2.10.2"
scalacOptions <<= scalaVersion map { v: String =>
val default = "-deprecation" :: "-unchecked" :: Nil
if (v.startsWith("2.9.")) default else
default ++ ("-feature" :: "-language:implicitConversions" :: Nil)
}
crossScalaVersions := "2.9.3" :: "2.10.2" :: Nil
libraryDependencies <+= scalaVersion {
case "2.9.3" => "org.scalatest" % "scalatest_2.9.2" % "2.0.M6-SNAP3" % "test"
case _ => "org.scalatest" %% "scalatest" % "2.0.M6-SNAP8" % "test"
}
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
publishMavenStyle := true
publishArtifact in Test := false
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")
}