forked from squeryl/squeryl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
65 lines (49 loc) · 1.75 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
name := "squeryl"
organization := "org.squeryl"
version := "0.9.5-RC2"
version <<= version { v =>
val snapshot = Option(System.getProperty("snapshot")) == Some("true")
if(snapshot)
v + "-SNAPSHOT"
else
v
}
scalaVersion := "2.9.1"
crossScalaVersions := Seq("2.9.1","2.9.0-1","2.9.0","2.8.1","2.8.0")
libraryDependencies ++= Seq(
"cglib" % "cglib-nodep" % "2.2",
"com.h2database" % "h2" % "1.2.127" % "provided",
"mysql" % "mysql-connector-java" % "5.1.10" % "provided",
"postgresql" % "postgresql" % "8.4-701.jdbc4" % "provided",
"net.sourceforge.jtds" % "jtds" % "1.2.4" % "provided",
"org.apache.derby" % "derby" % "10.7.1.1" % "provided",
"junit" % "junit" % "4.8.2" % "provided",
"org.jmock" % "jmock" % "2.6.0-RC2" % "provided",
"org.jmock" % "jmock-legacy" % "2.6.0-RC2" % "provided"
)
libraryDependencies <+= scalaVersion("org.scala-lang" % "scalap" % _ % "provided")
libraryDependencies <+= scalaVersion(sv => sv match {
case _ if sv startsWith "2.9" =>
"org.scalatest" % "scalatest_2.9.1" % "1.6.1" % "test"
case _ =>
"org.scalatest" % "scalatest_2.8.2" % "1.5.1" % "test"
})
retrieveManaged := true
parallelExecution := false
publishMavenStyle := true
publishTo <<= (version) { version: String =>
val nexus = "http://nexus.scala-tools.org/content/repositories/"
if (version.trim.endsWith("SNAPSHOT"))
Some("Scala Tools Snapshots" at nexus + "snapshots/")
else
Some("Scala Tools Releases" at nexus + "releases/")
}
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
pomExtra :=
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>