-
Notifications
You must be signed in to change notification settings - Fork 89
/
build.sbt
85 lines (76 loc) · 3.38 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
73
74
75
76
77
78
79
80
81
82
83
84
85
name := "repox"
organization := "com.gtan"
scalaVersion := "2.12.6"
val akkaVersion = "2.5.14"
libraryDependencies ++= {
val undertowVer = "2.0.11.Final"
val logbackVer = "1.2.3"
val leveldbVer = "0.7"
val leveldbjniVer = "1.8"
val scalaTestVer = "3.0.5"
val playJsonVer = "2.6.7"
val scalaLoggingVer = "3.9.0"
val ningVer = "1.9.40"
val protobufVer = "3.6.1"
Seq(
"io.undertow" % "undertow-core" % undertowVer,
("com.ning" % "async-http-client" % ningVer)
.exclude("org.slf4j", "slf4j-api"),
("com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVer)
.exclude("org.scala-lang", "scala-library")
.exclude("org.scala-lang", "scala-reflect"),
("ch.qos.logback" % "logback-classic" % logbackVer)
.exclude("org.slf4j", "slf4j-api"),
("com.typesafe.akka" %% "akka-actor" % akkaVersion)
.exclude("org.scala-lang", "scala-library")
.exclude("org.slf4j", "slf4j-api"),
("com.typesafe.akka" %% "akka-slf4j" % akkaVersion)
.exclude("org.scala-lang", "scala-library")
.exclude("org.slf4j", "slf4j-api"),
("com.typesafe.akka" %% "akka-agent" % akkaVersion)
.exclude("org.scala-lang", "scala-library"),
("com.typesafe.akka" %% "akka-persistence" % akkaVersion)
.exclude("org.scala-lang", "scala-library"),
("org.iq80.leveldb" % "leveldb" % leveldbVer)
.exclude("com.google.guava", "guava"),
"org.fusesource.leveldbjni" % "leveldbjni-all" % leveldbjniVer,
("com.typesafe.akka" %% "akka-persistence-query" % akkaVersion)
.exclude("org.scala-lang", "scala-library")
.exclude("com.typesafe", "config")
.exclude("com.typesafe", "ssl-config-akka_2.12")
.exclude("com.typesafe.akka", "akka-testkit_2.12")
.exclude("com.typesafe.akka", "akka-stream-testkit_2.12"),
("com.typesafe.play" %% "play-json" % playJsonVer)
.exclude("org.scala-lang", "scala-library"),
"com.google.protobuf" % "protobuf-java" % protobufVer,
"org.scalatest" %% "scalatest" % scalaTestVer % "test"
)
}
transitiveClassifiers := Seq("sources")
updateOptions := updateOptions.value.withGigahorse(false)
scalacOptions ++= Seq(
"-feature",
"-deprecation",
"-language:implicitConversions",
// "-language:higherKinds",
// "-language:existentials",
"-language:postfixOps"
)
fork := true
assemblyMergeStrategy in assembly := {
case str@PathList("admin", "bower_components", remains@_*) => remains match {
case Seq("angular", "angular.min.js") => MergeStrategy.deduplicate
case Seq("angular-route", "angular-route.min.js") => MergeStrategy.deduplicate
case Seq("ng-file-upload", "ng-file-upload.min.js") => MergeStrategy.deduplicate
case Seq("underscore", "underscore-min.js") => MergeStrategy.deduplicate
case Seq("jquery", "dist", "jquery.min.js") => MergeStrategy.deduplicate
case Seq("semantic-ui", "dist", "semantic.min.css") => MergeStrategy.deduplicate
case Seq("semantic-ui", "dist", "semantic.min.js") => MergeStrategy.deduplicate
case Seq("semantic-ui", "dist", "themes", "default", "assets", _*) => MergeStrategy.deduplicate
case _ => MergeStrategy.discard
}
case x =>
(assemblyMergeStrategy in assembly).value.apply(x)
}
mainClass in assembly := Some("com.gtan.repox.Main")
test in assembly := {}