forked from fbettag/lift-netty-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
52 lines (43 loc) · 1.58 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
name := "netty"
organization := "net.liftweb"
version := "1.0"
scalaVersion := "2.10.2"
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:reflectiveCalls",
"-language:postfixOps"
)
seq(sbt.dist.Dist.distSettings: _*)
resolvers ++= Seq(
"Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Twitter's Repository" at "http://maven.twttr.com/",
"Maven Repo" at "http://repo1.maven.org/maven2/",
"Typesafe Ivy Repo" at "http://repo.typesafe.com/typesafe/ivy-releases",
"Typesafe Maven Repo" at "http://repo.typesafe.com/typesafe/releases/",
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
)
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % "2.5" % "compile",
//"org.eclipse.jetty" % "jetty-webapp" % "7.6.11.v20130520",
"ch.qos.logback" % "logback-classic" % "1.0.0" % "compile",
"io.netty" % "netty-all" % "4.0.0.CR9"
)
// to put webapp content to root of jar
resourceGenerators in Compile <+= (resourceManaged, baseDirectory) map
{ (managedBase, base) =>
val webappBase = base / "src" / "main" / "webapp"
for {
(from, to) <- webappBase ** "*" x rebase(webappBase, managedBase / "main")
} yield {
Sync.copy(from, to)
to
}
}
// to make ~ working on webapp
watchSources <++= baseDirectory map { base =>
val webappBase = base / "src" / "main" / "webapp"
(webappBase ** "*").get
}