forked from gitter-badger/akka-http-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
97 lines (80 loc) · 3.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
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
86
87
88
89
90
91
92
93
94
95
96
97
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
name := "akka-http-extensions"
organization := "com.lonelyplanet"
version := "0.4.15"
scalaVersion := "2.11.8"
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
scalacOptions ++= Seq(
"-encoding",
"utf8",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-unchecked",
"-deprecation"
)
resolvers ++= Seq(
"OSS" at "http://oss.sonatype.org/content/repositories/releases/",
Resolver.bintrayRepo("lonelyplanet", "maven")
)
libraryDependencies ++= {
val akkaVersion = "2.4.11"
val akkaHttpVersion = "10.0.0"
val scalaTestVersion = "3.0.1"
val logbackClassicVersion = "1.1.7"
val scalaUtilVersion = "0.2.4"
val kamonVersion = "0.6.3"
val jsonApiVersion = "0.6.0"
Seq(
"ch.qos.logback" % "logback-classic" % logbackClassicVersion % "provided",
"com.typesafe.akka" %% "akka-actor" % akkaVersion % "provided",
"com.typesafe.akka" %% "akka-stream" % akkaVersion % "provided",
"com.typesafe.akka" %% "akka-http-core" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
("com.lonelyplanet" %% "scala-util" % scalaUtilVersion).exclude("ch.qos.logback", "logback-classic"),
"org.zalando" %% "scala-jsonapi" % jsonApiVersion % "provided",
("io.kamon" %% "kamon-core" % kamonVersion % "provided").exclude("com.typesafe.akka", "akka-actor_2.11"),
"io.kamon" %% "kamon-scala" % kamonVersion % "provided", // Required for logging trace tokens in futures
"io.kamon" %% "kamon-autoweave" % kamonVersion % "provided"
)
}
SbtScalariform.scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(SpacesAroundMultiImports, false)
.setPreference(CompactControlReadability, false)
bintrayOrganization := Some("lonelyplanet")
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
val doNotPublishSettings = Seq(publish := {})
val publishSettings =
if (version.toString.endsWith("-SNAPSHOT"))
Seq(
publishTo := Some("Artifactory Realm" at "http://oss.jfrog.org/artifactory/oss-snapshot-local"),
bintrayReleaseOnPublish := false,
credentials := List(Path.userHome / ".bintray" / ".artifactory").filter(_.exists).map(Credentials(_))
)
else
Seq(
organization := "com.lonelyplanet",
pomExtra := <scm>
<url>https://github.com/lonelyplanet/akka-http-extensions</url>
<connection>https://github.com/lonelyplanet/akka-http-extensions</connection>
</scm>
<developers>
<developer>
<id>wlk</id>
<name>Wojciech Langiewicz</name>
<url>https://github.com/lonelyplanet/akka-http-extensions</url>
</developer>
</developers>,
publishArtifact in Test := false,
homepage := Some(url("https://github.com/lonelyplanet/akka-http-extensions")),
publishMavenStyle := false,
resolvers += Resolver.url("lonelyplanet ivy resolver", url("http://dl.bintray.com/lonelyplanet/maven"))(Resolver.ivyStylePatterns)
)