-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
79 lines (73 loc) · 2.36 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
lazy val commonSettings = Seq(
version := "0.3",
organization := "com.larroy.openquant",
name := "YahooFinanceScala",
scalaVersion := "2.11.8",
scalacOptions := Seq(
"-target:jvm-1.8",
"-unchecked",
"-deprecation",
"-feature",
"-encoding", "utf8",
"-Xlint"
),
resolvers ++= Seq(Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots"),
Resolver.bintrayRepo("scalaz", "releases"),
Resolver.bintrayRepo("megamsys", "scala"),
"Akka Snapshot Repository" at "http://repo.akka.io/snapshots/"
),
// Sonatype publishing
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
autoScalaLibrary := false,
autoScalaLibrary in test := false,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra := (
<url>https://github.com/openquant</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/openquant/YahooFinanceScala.git</url>
<connection>scm:[email protected]:openquant/YahooFinanceScala.git</connection>
</scm>
<developers>
<developer>
<id>larroy</id>
<name>Pedro Larroy</name>
<url>https://github.com/larroy</url>
</developer>
</developers>
)
)
lazy val commonDependencies = Seq(
"org.slf4j" % "jcl-over-slf4j" % "1.7.7",
"commons-logging" % "commons-logging" % "1.2",
"ch.qos.logback" % "logback-classic" % "1.1.3",
"net.ceedubs" %% "ficus" % "1.1.2",
"com.typesafe.akka" %% "akka-stream" % "2.4.3",
//"com.typesafe.akka" %% "akka-http-core" % "2.4-SNAPSHOT",
"com.typesafe.akka" %% "akka-http-core" % "2.4.3",
"com.github.tototoshi" %% "scala-csv" % "1.+",
"ch.qos.logback" % "logback-classic" % "1.1.3"
)
lazy val testDependencies = Seq(
"org.specs2" %% "specs2" % "3.+" % "test",
"com.typesafe.akka" %% "akka-testkit" % "2.4.3" % "test"
)
lazy val yahoofinancescala = project.in(file("."))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= commonDependencies)
.settings(libraryDependencies ++= testDependencies)