Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeck committed Apr 27, 2012
1 parent a8a93d1 commit 2930ab6
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions project/build.scala
Expand Up @@ -11,41 +11,44 @@ object LiftProjectBuild extends Build {
lazy val buildSettings = Seq( lazy val buildSettings = Seq(
organization := "com.yourorganization", organization := "com.yourorganization",
version := "0.1-SNAPSHOT", version := "0.1-SNAPSHOT",
scalaVersion := "2.9.1") scalaVersion := "2.9.1"
)


def yourWebSettings = webSettings ++ Seq( def yourWebSettings = webSettings ++ Seq(
// If you are use jrebel // If you are use jrebel
scanDirectories in Compile := Nil, scanDirectories in Compile := Nil,
port in container.Configuration := 8080 port in container.Configuration := 8080
) )


lazy val liftQuickstart = Project( lazy val liftQuickstart = Project(
id = "lift-quickstart", id = "lift-quickstart",
base = file("."), base = file("."),
settings = defaultSettings ++ yourWebSettings) settings = defaultSettings ++ yourWebSettings
)


lazy val defaultSettings = Defaults.defaultSettings ++ Seq( lazy val defaultSettings = Defaults.defaultSettings ++ Seq(
name := "lift-quickstart", name := "lift-quickstart",
resolvers ++= Seq( resolvers ++= Seq(
"Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases", "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases",
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/"), "Java.net Maven2 Repository" at "http://download.java.net/maven/2/"

),
libraryDependencies ++= { libraryDependencies ++= {
val liftVersion = "2.4" val liftVersion = "2.4"
Seq( Seq(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile", "net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"net.liftweb" %% "lift-wizard" % liftVersion % "compile", "net.liftweb" %% "lift-wizard" % liftVersion % "compile",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile", "net.liftweb" %% "lift-mapper" % liftVersion % "compile",


"com.h2database" % "h2" % "1.3.165" % "compile", "com.h2database" % "h2" % "1.3.165" % "compile",
"ch.qos.logback" % "logback-classic" % "1.0.0" % "compile", "ch.qos.logback" % "logback-classic" % "1.0.0" % "compile",


"org.eclipse.jetty" % "jetty-webapp" % "7.5.4.v20111024" % "container", "org.eclipse.jetty" % "jetty-webapp" % "7.5.4.v20111024" % "container",


"org.scala-tools.testing" %% "specs" % "1.6.9" % "test", "org.scala-tools.testing" %% "specs" % "1.6.9" % "test",
"org.scalatest" %% "scalatest" % "1.6.1" % "test", "org.scalatest" %% "scalatest" % "1.6.1" % "test",
"junit" % "junit" % "4.10" % "test") "junit" % "junit" % "4.10" % "test"
}, )
},


// compile options // compile options
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"), scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
Expand All @@ -55,4 +58,3 @@ object LiftProjectBuild extends Build {
testOptions in Test += Tests.Argument("-oF") testOptions in Test += Tests.Argument("-oF")
) )
} }

0 comments on commit 2930ab6

Please sign in to comment.