-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
81 lines (68 loc) · 2.35 KB
/
build.sbt
File metadata and controls
81 lines (68 loc) · 2.35 KB
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
lazy val commonSettings = Seq(
version := "0.1",
organization := "openquant",
scalaVersion := "2.11.7",
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8"),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
)
lazy val testDependencies = Seq(
"org.specs2" %% "specs2" % "3.+" % "test"
)
lazy val commonDependencies = Seq(
"org.scalaz" %% "scalaz-core" % "7.2.0",
"org.slf4j" % "jcl-over-slf4j" % "1.7.7",
"commons-logging" % "commons-logging" % "99-empty",
"ch.qos.logback" % "logback-classic" % "1.1.3",
"com.iheart" %% "ficus" % "1.2.3",
"openquant" %% "common" % "+"
)
lazy val quoteprovider = project.in(file("quoteprovider"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(libraryDependencies ++= commonDependencies)
lazy val yahooquoteprovider = project.in(file("yahooquoteprovider"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= {
Seq(
"com.larroy.openquant" %% "yahoofinancescala" % "0.2"
)
})
.dependsOn(quoteprovider)
lazy val symbols = project.in(file("symbols"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= {
Seq(
"com.github.tototoshi" %% "scala-csv" % "1.+"
)
})
lazy val cli = project.in(file("cli"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= {
Seq(
"com.github.scopt" %% "scopt" % "3.2.0"
)
})
.dependsOn(quoteprovider, symbols, quotedb, yahooquoteprovider)
lazy val quotedb = project.in(file("quotedb"))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= testDependencies)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= {
Seq(
"org.scalikejdbc" %% "scalikejdbc" % "2.3.+",
"org.xerial" % "sqlite-jdbc" % "3.8.7"
)
})
lazy val main = project.in(file("."))
.settings(commonSettings: _*)
.aggregate(quoteprovider, symbols, yahooquoteprovider)
parallelExecution in Test := false