forked from slick/slick
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
84 lines (61 loc) · 2.68 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
name := "ScalaQuery"
organizationName := "ScalaQuery"
organization := "org.scalaquery"
version := "0.10.0-SNAPSHOT"
//scalaVersion := "2.9.1-1"
//scalaVersion := "2.10.0-unknown-unknown"
//scalaVersion := "2.10.0-SNAPSHOT"
scalaVersion := "2.10.0-M3"
resolvers += Resolver.sonatypeRepo("snapshots")
//resolvers += "Sonatype OSS Snapshots Repository" at "http://oss.sonatype.org/content/groups/public/"
//crossScalaVersions ++= "2.9.1-1" :: "2.9.1" :: "2.9.0-1" :: "2.9.0" :: Nil
//crossVersion := CrossVersion.Disabled
//scalaHome := Some(file("C:/Users/szeiger/code/scala/build/pack"))
//autoScalaLibrary := false
scalacOptions ++= List("-deprecation")
libraryDependencies <++= (useJDBC4) { u => Seq(
"com.h2database" % "h2" % "1.3.166" % "test",
"org.xerial" % "sqlite-jdbc" % "3.6.20" % "test",
"org.apache.derby" % "derby" % "10.6.1.0" % "test",
"org.hsqldb" % "hsqldb" % "2.0.0" % "test",
"postgresql" % "postgresql" % (if(u) "8.4-701.jdbc4" else "8.4-701.jdbc3") % "test",
"mysql" % "mysql-connector-java" % "5.1.13" % "test",
"net.sourceforge.jtds" % "jtds" % "1.2.4" % "test",
//"com.novocode" % "junit-interface" % "0.8" % "test",
"com.novocode" % "junit-interface" % "0.9-SNAPSHOT" % "test",
"org.slf4j" % "slf4j-api" % "1.6.4",
"ch.qos.logback" % "logback-classic" % "0.9.28" % "test"
)}
// Add scala-compiler dependency for scala.reflect.internal
libraryDependencies <+= scalaVersion(
"org.scala-lang" % "scala-compiler" % _
)
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
publishTo <<= (repoKind)(r => Some(Resolver.file("test", file("c:/temp/repo/"+r))))
/*publishTo <<= (repoKind){
case "snapshots" => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
case "releases" => Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}*/
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
description := "A type-safe database API for Scala"
homepage := Some(url("http://scalaquery.org/"))
startYear := Some(2008)
licenses += ("Two-clause BSD-style license", url("http://github.com/szeiger/scala-query/blob/master/LICENSE.txt"))
pomExtra :=
<developers>
<developer>
<id>szeiger</id>
<name>Stefan Zeiger</name>
<timezone>+1</timezone>
<url>http://szeiger.de</url>
</developer>
</developers>
<scm>
<url>[email protected]:szeiger/scala-query.git</url>
<connection>scm:git:[email protected]:szeiger/scala-query.git</connection>
</scm>
// Work around scaladoc problem
unmanagedClasspath in Compile += Attributed.blank(new java.io.File("doesnotexist"))