-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
86 lines (67 loc) · 3.01 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
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.4"
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/")
libraryDependencies ++= {
val akkaVersion = "2.3.15" //downgraded because of akkaStream requirements/compatibility
val akkaStreamVersion = "2.0.4"
val scalaTestVersion = "3.0.0-M15"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion % "provided",
"com.typesafe.akka" %% "akka-stream-experimental" % akkaStreamVersion % "provided",
"com.typesafe.akka" %% "akka-http-core-experimental" % akkaStreamVersion % "provided",
"com.typesafe.akka" %% "akka-http-experimental" % akkaStreamVersion % "provided",
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaStreamVersion % "provided",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"com.typesafe.akka" %% "akka-http-testkit-experimental" % akkaStreamVersion % "test"
)
}
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)
)