-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
86 lines (57 loc) · 2.07 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
//assembly to package with dependencies ------------------------------
//standard options ------------------------------
name := "dataexpress"
homepage := Some(url("http://dataexpress.research.chop.edu/"))
val v = "0.9.2"
version := v
organization := "edu.chop.research"
scalaVersion := "2.11.7"
licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
assemblyJarName in assembly := s"DataExpress_${v}_standalone.jar"
test in assembly := {}
assembleArtifact in packageScala := false
//compile dependencies------------------------------
libraryDependencies ++= Seq(
"org.xerial" % "sqlite-jdbc" % "3.7.2",
"postgresql" % "postgresql" % "9.0-801.jdbc4",
"mysql" % "mysql-connector-java" % "5.1.21"
)
//test dependencies------------------------------
//Need this for now until we unwind some of the tests
parallelExecution in Test := false
libraryDependencies ++= {
val deps = Seq(
"org.scalatest" %% "scalatest" % "2.2.4",
"junit" % "junit" % "4.8.1"
)
deps map {v => v % "test"}
}
//scala options------------------------------
scalacOptions +="-language:dynamics"
//Publishing options---------------------------
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 := (
<scm>
<url>[email protected]:cbmi/dataexpress.git</url>
<connection>scm:git:[email protected]:cbmi/dataexpress.git</connection>
</scm>
<developers>
<developer>
<id>mitalia</id>
<name>Michael Italia</name>
</developer>
</developers>)
//console imports------------------------------
initialCommands in console := """import edu.chop.cbmi.dataExpress.dsl.ETL
import edu.chop.cbmi.dataExpress.dsl.ETL._
import edu.chop.cbmi.dataExpress.dsl.stores.SqlDb
import edu.chop.cbmi.dataExpress.dataModels.RichOption._"""