forked from tuhlmann/lift-3-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
72 lines (49 loc) · 3.08 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
name := "lift-3-demo"
scalaVersion := "2.10.3"
resolvers ++= Seq(
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/",
"Sonatype scala-tools repo" at "https://oss.sonatype.org/content/groups/scala-tools/",
"Sonatype scala-tools releases" at "https://oss.sonatype.org/content/repositories/releases",
"Sonatype scala-tools snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
{
val liftVersion = "3.0-SNAPSHOT"
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile",
"ch.qos.logback" % "logback-classic" % "1.0.6",
"junit" % "junit" % "4.7" % "test",
"org.specs2" %% "specs2" % "1.14" % "test",
"org.pegdown" % "pegdown" % "1.1.0" % "test",
"org.scalatest" %% "scalatest" % "2.0.M5b" % "test",
"org.eclipse.jetty" % "jetty-webapp" % "8.1.7.v20120910" % "container,compile",
"org.eclipse.jetty.orbit" % "javax.servlet" % "3.0.0.v201112011016" % "container,compile" artifacts Artifact("javax.servlet", "jar", "jar"),
"net.liftmodules" %% "mapperauth_2.6" % "0.2-SNAPSHOT" % "compile" intransitive(),
"net.liftmodules" %% "extras_2.5" % "0.3" % "compile" intransitive(),
"com.h2database" % "h2" % "1.2.138",
"net.databinder.dispatch" %% "dispatch-core" % "0.10.0"
)
}
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "code"
seq(lessSettings:_*)
(LessKeys.filter in (Compile, LessKeys.less)) := "styles.less"
(LessKeys.mini in (Compile, LessKeys.less)) := true
(sourceDirectory in (Compile, LessKeys.less)) <<= (sourceDirectory in Compile)(_ / "webapp" / "media" / "styles")
seq(closureSettings:_*)
(ClosureKeys.prettyPrint in (Compile, ClosureKeys.closure)) := false
seq(webSettings :_*)
// add managed resources, where less and closure publish to, to the webapp
(webappResources in Compile) <+= (resourceManaged in Compile)
(resourceManaged in (Compile, LessKeys.less)) <<= (crossTarget in Compile)(_ / "resource_managed" / "main" / "media" / "styles")
(sourceDirectory in (Compile, ClosureKeys.closure)) <<= (sourceDirectory in Compile)(_ / "webapp" / "media" / "js")
(resourceManaged in (Compile, ClosureKeys.closure)) <<= (crossTarget in Compile)(_ / "resource_managed" / "main" / "media" / "js")
// If using JRebel uncomment next line
scanDirectories := Nil
// Remove Java directories, otherwise sbteclipse generates them
unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)(Seq(_))
unmanagedSourceDirectories in Test <<= (scalaSource in Test)(Seq(_))
EclipseKeys.withSource := true
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource