-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
91 lines (66 loc) · 2.51 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
organization := "com.proinnovate"
name := "scalatra-userauth"
version := "0.1.5-SNAPSHOT"
// set the Scala version used for the project
scalaVersion := "2.9.2"
crossScalaVersions := Seq("2.9.2", "2.10.0")
scalacOptions ++= Seq("-deprecation", "-unchecked", "-Xcheckinit", "-Xmigration", "-encoding", "UTF-8")
libraryDependencies ++= {
val sv = "2.9.1"
Seq(
"javax.servlet" % "javax.servlet-api" % "3.0.1" % "provided",
"com.weiglewilczek.slf4s" % ("slf4s" + "_" + sv) % "1.0.7",
"org.scalatra" % ("scalatra" + "_" + sv) % "2.0.4"
)
}
// ls-sbt configuration
// --------------------
seq(lsSettings: _*)
(LsKeys.tags in LsKeys.lsync) := Seq("scala", "project", "template")
(externalResolvers in LsKeys.lsync) := Seq(
"sonatype" at "http://oss.sonatype.org")
(description in LsKeys.lsync) :=
"Scalatra UserAuth - simple authentication library"
// sbt-release configuration
// -------------------------
releaseSettings
// Maven publishing configuration
// ------------------------------
publishMavenStyle := true
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>http://github.com/sroebuck/scalatra-userauth</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:sroebuck/scalatra-userauth.git</url>
<connection>scm:git:[email protected]:sroebuck/scalatra-userauth.git</connection>
</scm>
<developers>
<developer>
<id>sroebuck</id>
<name>Stuart Roebuck</name>
<url>https://github.com/sroebuck</url>
</developer>
</developers>)
// sbtscalariform
// --------------------------------------------------------------------------------------------------------------------
seq(scalariformSettings: _*)
ScalariformKeys.preferences := scalariform.formatter.preferences.FormattingPreferences().
setPreference(scalariform.formatter.preferences.AlignParameters, true).
setPreference(scalariform.formatter.preferences.AlignSingleLineCaseStatements, true).
setPreference(scalariform.formatter.preferences.PreserveDanglingCloseParenthesis, true).
setPreference(scalariform.formatter.preferences.RewriteArrowSymbols, true)