@@ -3,3 +3,36 @@ name := "hw3"
3
3
version := " 0.1"
4
4
5
5
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
+ )
0 commit comments