Skip to content

Commit

Permalink
Update build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
askmrsinh committed Nov 19, 2019
1 parent af8b830 commit 27512c4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,36 @@ name := "hw3"
version := "0.1"

scalaVersion := "2.12.10"

mainClass in(Compile, run) := Some("com.ashessin.cs441.hw3.stocksim.Montecarlo")
mainClass in(Compile, packageBin) := Some("com.ashessin.cs441.hw3.stocksim.Montecarlo")

assemblyMergeStrategy in assembly := {
case "main.log" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheOutput = false)

libraryDependencies ++= Seq(
"org.apache.logging.log4j" %% "log4j-api-scala" % "11.0",
"com.google.code.findbugs" % "jsr305" % "3.0.2",

// https://mvnrepository.com/artifact/org.apache.spark/spark-core
"org.apache.spark" %% "spark-core" % "2.4.4",
// https://mvnrepository.com/artifact/org.apache.spark/spark-sql
"org.apache.spark" %% "spark-sql" % "2.4.4",
// https://mvnrepository.com/artifact/org.apache.spark/spark-mllib
"org.apache.spark" %% "spark-mllib" % "2.4.4",
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
"org.apache.commons" % "commons-math3" % "3.6.1",


// https://mvnrepository.com/artifact/com.typesafe/config
"com.typesafe" % "config" % "1.4.0",

// https://mvnrepository.com/artifact/org.scalatest/scalatest
"org.scalatest" %% "scalatest" % "3.0.8" % "test"

)
1 change: 1 addition & 0 deletions project/assembly.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")

0 comments on commit 27512c4

Please sign in to comment.