Skip to content

Commit a73cde4

Browse files
committed
Separating dependencies into a single file
1 parent 3c53183 commit a73cde4

File tree

2 files changed

+54
-25
lines changed

2 files changed

+54
-25
lines changed

build.sbt

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sbt._
22
import java.io.File
3-
3+
import Dependencies._
44
import sbtbuildinfo.BuildInfoPlugin.autoImport._
55

66
maintainer := "Mandar Chandorkar <[email protected]>"
@@ -18,34 +18,16 @@ val dataDirectory = settingKey[File]("The directory holding the data files for r
1818

1919
val baseSettings = Seq(
2020
organization := "io.github.mandar2812",
21-
scalaVersion in ThisBuild := "2.11.7",
21+
scalaVersion in ThisBuild := scala,
2222
resolvers in ThisBuild ++= Seq("jzy3d-releases" at "http://maven.jzy3d.org/releases")
2323
)
2424

2525
lazy val commonSettings = Seq(
26-
libraryDependencies ++= Seq(
27-
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "compile",
28-
"org.scala-lang" % "scala-library" % scalaVersion.value % "compile",
29-
"org.scala-lang" % "scala-reflect" % scalaVersion.value % "compile",
30-
"com.typesafe" % "config" % "1.2.1" % "compile",
31-
"junit" % "junit" % "4.4",
32-
"org.specs" % "specs" % "1.2.5" % "test",
33-
"com.tinkerpop.gremlin" % "gremlin-java" % "2.6.0" % "compile",
34-
"com.tinkerpop" % "frames" % "2.5.0" % "compile",
35-
"org.scalanlp" % "breeze_2.11" % "0.11.2" % "compile",
36-
"org.scalanlp" % "breeze-natives_2.11" % "0.11.2" % "compile",
37-
"com.github.tototoshi" % "scala-csv_2.11" % "1.1.2" % "compile",
38-
"log4j" % "log4j" % "1.2.17" % "compile",
39-
"org.scala-lang" % "jline" % "2.11.0-M3" % "compile",
40-
"com.github.wookietreiber" % "scala-chart_2.11" % "0.4.2" % "compile",
41-
"org.scalaforge" % "scalax" % "0.1" % "compile",
42-
"org.scala-lang" % "scala-pickling_2.11" % "0.9.1" % "compile",
43-
"org.apache.spark" % "spark-core_2.11" % "1.6.1" % "compile",
44-
"org.apache.spark" % "spark-mllib_2.11" % "1.6.1" % "compile",
45-
"com.quantifind" % "wisp_2.11" % "0.0.4" % "compile",
46-
"org.jzy3d" % "jzy3d-api" % "0.9.1" % "compile",
47-
"com.lihaoyi" % "ammonite-repl_2.11.7" % "0.5.8"
48-
)
26+
libraryDependencies ++= (
27+
baseDependencies ++ apacheSpark ++
28+
replDependency ++ loggingDependency ++
29+
linearAlgebraDependencies ++
30+
chartsDependencies ++ tinkerpopDependency)
4931
)
5032

5133
lazy val pipes = (project in file("dynaml-pipes")).settings(baseSettings:_*)

project/Dependencies.scala

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import sbt._
2+
3+
object Dependencies {
4+
5+
val scala = "2.11.7"
6+
7+
val baseDependencies = Seq(
8+
"org.scala-lang" % "scala-compiler" % scala % "compile",
9+
"org.scala-lang" % "scala-library" % scala % "compile",
10+
"org.scala-lang" % "scala-reflect" % scala % "compile",
11+
"com.typesafe" % "config" % "1.2.1" % "compile",
12+
"junit" % "junit" % "4.4",
13+
"org.specs" % "specs" % "1.2.5" % "test",
14+
"com.github.tototoshi" % "scala-csv_2.11" % "1.1.2" % "compile",
15+
"org.scala-lang" % "jline" % "2.11.0-M3" % "compile",
16+
"org.scalaforge" % "scalax" % "0.1" % "compile",
17+
"org.scala-lang" % "scala-pickling_2.11" % "0.9.1" % "compile"
18+
19+
)
20+
21+
val apacheSpark = Seq(
22+
"org.apache.spark" % "spark-core_2.11" % "1.6.1" % "compile",
23+
"org.apache.spark" % "spark-mllib_2.11" % "1.6.1" % "compile"
24+
)
25+
26+
val loggingDependency = Seq("log4j" % "log4j" % "1.2.17" % "compile")
27+
28+
val linearAlgebraDependencies = Seq(
29+
"org.scalanlp" % "breeze_2.11" % "0.11.2" % "compile",
30+
"org.scalanlp" % "breeze-natives_2.11" % "0.11.2" % "compile")
31+
32+
val chartsDependencies = Seq(
33+
"com.github.wookietreiber" % "scala-chart_2.11" % "0.4.2" % "compile",
34+
"org.jzy3d" % "jzy3d-api" % "0.9.1" % "compile",
35+
"com.quantifind" % "wisp_2.11" % "0.0.4" % "compile"
36+
)
37+
38+
val replDependency = Seq(
39+
"com.lihaoyi" % "ammonite-repl_2.11.7" % "0.5.8"
40+
)
41+
42+
val tinkerpopDependency = Seq(
43+
"com.tinkerpop.gremlin" % "gremlin-java" % "2.6.0" % "compile",
44+
"com.tinkerpop" % "frames" % "2.5.0" % "compile"
45+
)
46+
47+
}

0 commit comments

Comments
 (0)