Skip to content

Commit 27512c4

Browse files
committed
Update build settings
1 parent af8b830 commit 27512c4

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

build.sbt

+33
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,36 @@ name := "hw3"
33
version := "0.1"
44

55
scalaVersion := "2.12.10"
6+
7+
mainClass in(Compile, run) := Some("com.ashessin.cs441.hw3.stocksim.Montecarlo")
8+
mainClass in(Compile, packageBin) := Some("com.ashessin.cs441.hw3.stocksim.Montecarlo")
9+
10+
assemblyMergeStrategy in assembly := {
11+
case "main.log" => MergeStrategy.discard
12+
case x =>
13+
val oldStrategy = (assemblyMergeStrategy in assembly).value
14+
oldStrategy(x)
15+
}
16+
assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheOutput = false)
17+
18+
libraryDependencies ++= Seq(
19+
"org.apache.logging.log4j" %% "log4j-api-scala" % "11.0",
20+
"com.google.code.findbugs" % "jsr305" % "3.0.2",
21+
22+
// https://mvnrepository.com/artifact/org.apache.spark/spark-core
23+
"org.apache.spark" %% "spark-core" % "2.4.4",
24+
// https://mvnrepository.com/artifact/org.apache.spark/spark-sql
25+
"org.apache.spark" %% "spark-sql" % "2.4.4",
26+
// https://mvnrepository.com/artifact/org.apache.spark/spark-mllib
27+
"org.apache.spark" %% "spark-mllib" % "2.4.4",
28+
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
29+
"org.apache.commons" % "commons-math3" % "3.6.1",
30+
31+
32+
// https://mvnrepository.com/artifact/com.typesafe/config
33+
"com.typesafe" % "config" % "1.4.0",
34+
35+
// https://mvnrepository.com/artifact/org.scalatest/scalatest
36+
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
37+
38+
)

project/assembly.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")

0 commit comments

Comments
 (0)