forked from OElesin/project-matt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
72 lines (62 loc) · 3.1 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
name := """project_matt"""
version := "1.0-BETA"
scalaVersion := "2.12.6"
val awsSDKVersion = "1.11.320"
val tikaVersion = "1.18"
val elastic4sVersion = "5.6.6"
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-core" % "2.8.7"
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.7"
dependencyOverrides += "com.fasterxml.jackson.module" % "jackson-module-scala_2.12" % "2.8.7"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.4.16",
"com.typesafe.akka" %% "akka-actor" % "2.4.16" % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.apache.tika" % "tika-core" % tikaVersion,
"org.apache.tika" % "tika-parsers" % tikaVersion,
"org.apache.tika" % "tika-serialization" % tikaVersion,
"com.amazonaws" % "aws-java-sdk-s3" % awsSDKVersion,
"net.debasishg" %% "redisclient" % "3.6",
"org.visallo" % "visallo-core" % "4.0.0",
"org.json" % "json" % "20180130",
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-jackson" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-http" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-testkit" % elastic4sVersion % "test",
"com.sksamuel.elastic4s" %% "elastic4s-embedded" % elastic4sVersion % "test",
// a json library
"com.sksamuel.elastic4s" %% "elastic4s-jackson" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-play-json" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-circe" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-json4s" % elastic4sVersion,
// logging libs
"org.apache.logging.log4j" % "log4j-core" % "2.9.0",
"org.apache.logging.log4j" % "log4j-api" % "2.9.0",
"org.apache.logging.log4j" % "log4j-to-slf4j" % "2.9.0",
"org.slf4j" % "slf4j-simple" % "1.7.21",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"commons-codec" % "commons-codec" % "1.9",
"org.elasticsearch" % "elasticsearch" % elastic4sVersion,
"org.apache.commons" % "commons-io" % "1.3.2",
"io.dataapps.chlorine" % "chlorine-finder" % "1.1.5",
"org.kohsuke.args4j" % "args4j-maven-plugin" % "2.33",
// parquet
"org.apache.parquet" % "parquet-common" % "1.10.0",
"org.apache.parquet" % "parquet-column" % "1.10.0",
"org.apache.parquet" % "parquet-hadoop" % "1.10.0",
"org.apache.parquet" % "parquet-encoding" % "1.10.0",
"org.apache.parquet" % "parquet-scala_2.10" % "1.10.0",
"org.apache.hadoop" % "hadoop-common" % "2.7.2",
"org.apache.parquet" % "parquet-tools" % "1.10.0",
"org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
"org.scalamock" %% "scalamock" % "4.1.0" % Test
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
assemblyOutputPath in assembly := file("deploy_app/artifacts/project-matt_1.0-BETA.jar")
lazy val execScript = taskKey[Unit]("Execute the shell script")
execScript := {
"aws s3 cp deploy_app/artifacts/project-matt_1.0-BETA.jar s3://datafy-data-lake-public-artifacts/project-matt/ --acl public-read" !
}