-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
63 lines (47 loc) · 1.76 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
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
name := """play-rfc6902"""
organization := "de.lenabrueder"
version := "0.7-SNAPSHOT"
licenses += ("LGPL", url("https://opensource.org/licenses/LGPL-3.0"))
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomExtra := (
<scm>
<url>[email protected]:lenalebt/play-rfc6902.git</url>
<developerConnection>scm:git:[email protected]:lenalebt/play-rfc6902.git</developerConnection>
<connection>scm:git:https://github.com/lenalebt/play-rfc6902.git</connection>
</scm>
<developers>
<developer>
<name>Lena Brueder</name>
<email>[email protected]</email>
<url>https://github.com/lenalebt</url>
</developer>
</developers>)
homepage := Some(url("https://github.com/lenalebt/play-rfc6902"))
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8")
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.5.3",
"org.scalatest" %% "scalatest" % "2.2.6" % "test"
)
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, true)
.setPreference(IndentWithTabs, false)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(IndentLocalDefs, true)
.setPreference(IndentPackageBlocks, true)
.setPreference(IndentSpaces, 2)
.setPreference(PreserveDanglingCloseParenthesis, true)
scapegoatVersion := "1.2.0"
compile in Compile <<= (compile in Compile) dependsOn scapegoat