-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
48 lines (42 loc) · 1.87 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
// Set the project name to the string 'My Project'
name := "QR Coding checkins"
// The := method used in Name and Version is one of two fundamental methods.
// The other method is <<=
// All other initialization methods are implemented in terms of these.
version := "0.0.1"
seq(webSettings :_*)
// Add multiple dependencies
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % "2.4-M1" % "compile" withSources,
"net.liftweb" %% "lift-mapper" % "2.4-M1" % "compile" withSources,
"net.liftweb" %% "lift-json" % "2.4-M1" % "compile" withSources,
"net.liftweb" %% "lift-common" % "2.4-M1" % "compile" withSources,
"net.liftweb" %% "lift-util" % "2.4-M1" % "compile" withSources,
"org.scalaj" %% "scalaj-collection" % "1.1",
"org.scalaj" %% "scalaj-http" % "0.2.8" % "compile" withSources(),
"org.mortbay.jetty" % "jetty" % "6.1.26" % "jetty",
"junit" % "junit" % "4.8.2" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.26",
"org.scala-tools.testing" %% "specs" % "1.6.6" % "test",
"com.h2database" % "h2" % "1.2.138",
"com.novocode" % "junit-interface" % "0.6" % "test"
)
scalaVersion := "2.8.1"
// Exclude backup files by default. This uses ~=, which accepts a function of
// type T => T (here T = FileFilter) that is applied to the existing value.
// A similar idea is overriding a member and applying a function to the super value:
// override lazy val defaultExcludes = f(super.defaultExcludes)
//
defaultExcludes ~= (filter => filter || "*~")
/* Some equivalent ways of writing this:
defaultExcludes ~= (_ || "*~")
defaultExcludes ~= ( (_: FileFilter) || "*~")
defaultExcludes ~= ( (filter: FileFilter) => filter || "*~")
*/
// Use the project version to determine the repository to publish to.
publishTo <<= version { (v: String) =>
if(v endsWith "-SNAPSHOT")
Some(ScalaToolsSnapshots)
else
Some(ScalaToolsReleases)
}