четверг, августа 11, 2011

liftweb 2.4 и sbt 0.10.1

В корне проекта создаем build.sbt
name := "projectname"

scalaVersion := "2.9.0"

seq(webSettings :_*)

libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % "2.4-M1" % "compile->default",
"net.liftweb" %% "lift-mapper" % "2.4-M1" % "compile->default",
"net.liftweb" %% "lift-wizard" % "2.4-M1" % "compile->default")


libraryDependencies ++= Seq(
"junit" % "junit" % "4.5" % "test->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty",
"javax.servlet" % "servlet-api" % "2.5" % "provided->default",
"com.h2database" % "h2" % "1.2.138",
"ch.qos.logback" % "logback-classic" % "0.9.26" % "compile->default"
)

старую папку project переименовываем в project-old
создаем новую папку project
в project/plugins/build.sbt пишем
resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"
//Following means libraryDependencies += "com.github.siasia" %% "xsbt-web-plugin" % "0.1.1-""
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" % ("0.1.1-"+v))

Комментариев нет:

Мой список блогов