-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
57 lines (36 loc) · 1.55 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
import scoverage.ScoverageSbtPlugin
import scalariform.formatter.preferences._
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import com.typesafe.sbt.SbtScalariform.scalariformSettings
import bintray.Keys._
name := "siren-scala"
organization := "com.yetu"
scalaVersion := "2.11.6"
crossScalaVersions := Seq("2.11.6", "2.10.5")
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
resolvers += "spray" at "http://repo.spray.io/"
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
"io.spray" %% "spray-json" % "1.3.1" % "provided",
"com.typesafe.play" %% "play-json" % "2.3.8" % "provided",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
scalariformSettings ++ Seq(
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(RewriteArrowSymbols, true)
)
CoverallsPlugin.coverallsSettings
ScoverageSbtPlugin.ScoverageKeys.coverageMinimum := 80
ScoverageSbtPlugin.ScoverageKeys.coverageFailOnMinimum := true
// settings for bintray publishing
bintrayPublishSettings
repository in bintray := "maven"
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
packageLabels in bintray := Seq("siren-scala", "yetu")
bintrayOrganization in bintray := Some("yetu")
publishMavenStyle := true
publishArtifact in Test := false