-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (44 loc) · 1.86 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
name := "basespace2S3"
organization := "ohnosequences"
description := "basespace2S3 project"
scalaVersion := "2.11.8"
bucketSuffix := "era7.com"
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ws" % "2.5.12",
"ohnosequences" %% "loquat" % "2.0.0-RC4",
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
dependencyOverrides ++= Seq(
"joda-time" % "joda-time" % "2.9.6",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.7.8",
"org.slf4j" % "slf4j-api" % "1.7.25",
"commons-logging" % "commons-logging" % "1.2",
"org.scala-lang.modules" %% "scala-xml" % "1.0.5"
)
// Uncomment if you need to deploy this project as a Statika bundle:
generateStatikaMetadataIn(Compile)
assemblyMergeStrategy in assembly := {
case x if Assembly.isConfigFile(x) =>
MergeStrategy.concat
case PathList(ps @ _*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) =>
MergeStrategy.rename
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.first
}
case _ => MergeStrategy.first
}
// Uncomment if you have release-only tests using the assembled fat-jar:
// fullClasspath in assembly := (fullClasspath in Test).value
// Uncomment for Java projects:
// enablePlugin(JavaOnlySettings)