Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 215 lines (159 sloc) 7.687 kb
eb3a593 @dph01 first commit
authored
1 // set the name of the project
2 name := "ReqVarTest"
3
4 version := "0.1.0"
5
6 scalaVersion := "2.9.1"
7
8 // seq(WebPlugin.webSettings: _*)
9 seq(webSettings :_*)
10
11 // jettyContext := "/mediahub"
12 // jettyContext in container.Configuration = "/mediahub"
13
14 organization := "damianhelme"
15
16 // for jrebel
17 // jettyScanDirs := Nil
18 scanDirectories in Compile := Nil
19
20 // add a test dependency on ScalaCheck
21 // libraryDependencies += "org.scala-tools.testing" %% "scalacheck" % "1.8" % "test"
22 libraryDependencies ++= {
23 val liftVersion = "2.4-M4"
24 //val liftVersion = "2.3"
25 Seq(
26 "net.liftweb" %% "lift-webkit" % liftVersion % "compile",
27 "net.liftweb" %% "lift-mapper" % liftVersion % "compile",
28 "net.liftweb" %% "lift-record" % liftVersion % "compile",
29 "net.liftweb" %% "lift-wizard" % liftVersion % "compile",
30 "net.liftweb" %% "lift-widgets" % liftVersion % "compile",
31 "ch.qos.logback" % "logback-classic" % "0.9.26" % "compile",
32 "com.h2database" % "h2" % "1.2.138",
33 "mysql" % "mysql-connector-java" % "5.1.16",
34 "javax.servlet" % "servlet-api" % "2.5" % "provided",
35 // "org.mortbay.jetty" % "jetty" % "6.1.26" % "test,jetty",
36 "org.mortbay.jetty" % "jetty" % "6.1.26" % "test,container",
37 // "org.mortbay.jetty" % "jetty-plus" % "6.1.26" % "test,jetty",
38 "org.mortbay.jetty" % "jetty-plus" % "6.1.26" % "test,container",
39 // "org.eclipse.jetty" % "jetty-webapp" % "7.4.5.v20110725" % "compile,test->default" ,
40 "junit" % "junit" % "4.5" % "test",
983e096 @dph01 adding files missed on previous commit
authored
41 "org.scala-tools.testing" %% "specs" % "1.6.9" % "test",
eb3a593 @dph01 first commit
authored
42 "org.scalatest" %% "scalatest" % "1.6.1" % "test",
43 // "org.scalatest" %% "scalatest" % "1.5.1" % "test",
44 "org.scala-lang" % "scala-compiler" % "2.9.1"
45 // "org.scala-lang" % "scala-compiler" % "2.9.1"
46 // "eu.medsea.mimeutil" % "mime-util" % "2.1.3"
47 )
48 }
49
50
51 scalacOptions ++= Seq("-unchecked", "-deprecation")
52
53 mainClass := Some("RunWebApp")
54
55 // https://groups.google.com/forum/?hl=en#!activity/liftweb/Um5ghzYMDUoJ/liftweb/DDTzzxRbCNU/qEo0lIbTv4kJ
56 // needed for javaMail 1.4.4
57 resolvers += "Java.net Maven2 Repo" at "http://download.java.net/maven/2/"
58
59 // jettyConfFiles <<= jettyConfFiles(_.copy(env = Some(file(".") / "src" / "test" / "resources" / "jetty.xml" asFile)))
60
61 // needed to stop a clash between slf4j-log4j12 and logback-classic
62 // ivyXML := <dependencies>
63 // <dependency org="eu.medsea.mimeutil" name="mime-util" rev="2.1.3" >
64 // <exclude module="slf4j-log4j12" />
65 // </dependency>
66 // </dependencies>
67
68 // add compile dependencies on some dispatch modules
69 // libraryDependencies ++= Seq(
70 // "net.databinder" %% "dispatch-meetup" % "0.7.8",
71 // "net.databinder" %% "dispatch-twitter" % "0.7.8"
72 // )
73
74 // Set a dependency based partially on a val.
75 // {
76 // val libosmVersion = "2.5.2-RC1"
77 // libraryDependencies += "net.sf.travelingsales" % "osmlib" % libosmVersion from "http://downloads.sourceforge.net/project/travelingsales/libosm/"+libosmVersion+"/libosm-"+libosmVersion+".jar"
78 // }
79
80 // reduce the maximum number of errors shown by the Scala compiler
81 // maxErrors := 20
82
83 // increase the time between polling for file changes when using continuous execution
84 // pollInterval := 1000
85
86 // append several options to the list of options passed to the Java compiler
87 // javacOptions ++= Seq("-source", "1.5", "-target", "1.5")
88
89 // append -deprecation to the options passed to the Scala compiler
90 // scalacOptions += "-deprecation"
91
92 // define the statements initially evaluated when entering 'console', 'console-quick', or 'console-project'
93 // initialCommands := """
94 // import System.{currentTimeMillis => now}
95 // def time[T](f: => T): T = {
96 // val start = now
97 // try { f } finally { println("Elapsed: " + (now - start)/1000.0 + " s") }
98 // }
99 // """
100
101 // set the initial commands when entering 'console' only
102 // initialCommands in console := "import damianhelme._"
103
104 // set the main class for packaging the main jar
105 // 'run' will still auto-detect and prompt
106 // change Compile to Test to set it for the test jar
107 // mainClass in (Compile, packageBin) := Some("myproject.MyMain")
108
109 // set the main class for the main 'run' task
110 // change Compile to Test to set it for 'test:run'
111 // mainClass in (Compile, run) := Some("myproject.MyMain")
112
113 // add <base>/input to the files that '~' triggers on
114 // watchSources <+= baseDirectory map { _ / "input" }
115
116 // add a maven-style repository
117 // resolvers += "name" at "url"
118
119 // add a sequence of maven-style repositories
120 // resolvers ++= Seq("name" at "url")
121
122 // define the repository to publish to
123 // publishTo := Some("name" at "url")
124
125 // set Ivy logging to be at the highest level
126 // ivyLoggingLevel := UpdateLogging.Full
127
128 // disable updating dynamic revisions (including -SNAPSHOT versions)
129 // offline := true
130
131 // set the prompt (for this build) to include the project id.
132 // shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
133
134 // set the prompt (for the current project) to include the username
135 // shellPrompt := { state => System.getProperty("user.name") + "> " }
136
137 // disable printing timing information, but still print [success]
138 // showTiming := false
139
140 // disable printing a message indicating the success or failure of running a task
141 // showSuccess := false
142
143 // change the format used for printing task completion time
144 // timingFormat := {
145 // import java.text.DateFormat
146 // DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT)
147 // }
148
149 // disable using the Scala version in output paths and artifacts
150 // crossPaths := false
151
152 // fork a new JVM for 'run' and 'test:run'
153 // fork := true
154
155 // fork a new JVM for 'test:run', but not 'run'
156 // fork in Test := true
157
158 // add a JVM option to use when forking a JVM for 'run'
159 // javaOptions += "-Xmx2G"
160
161 // only use a single thread for building
162 // parallelExecution := false
163
164 // Execute tests in the current project serially
165 // Tests from other projects may still run concurrently.
166 // parallelExecution in Test := false
167
168 // set the location of the JDK to use for compiling Java code.
169 // if 'fork' is true, this is used for 'run' as well
170 // javaHome := Some(file("/usr/lib/jvm/sun-jdk-1.6"))
171
172 // Use Scala from a directory on the filesystem instead of retrieving from a repository
173 // scalaHome := Some(file("/home/user/scala/trunk/"))
174
175 // don't aggregate clean (See FullConfiguration for aggregation details)
176 // aggregate in clean := false
177
178 // only show warnings and errors on the screen for compilations.
179 // this applies to both test:compile and compile and is Info by default
180 // logLevel in compile := Level.Info
181
182 // only show warnings and errors on the screen for all tasks (the default is Info)
183 // individual tasks can then be more verbose using the previous setting
184 logLevel := Level.Info
185
186 // only store messages at info and above (the default is Debug)
187 // this is the logging level for replaying logging with 'last'
188 // persistLogLevel := Level.Debug
189
190 // only show 10 lines of stack traces
191 // traceLevel := 10
192
193 // only show stack traces up to the first sbt stack frame
194 // traceLevel := 0
195
196 // add SWT to the unmanaged classpath
197 // unmanagedJars in Compile += file("/usr/share/java/swt.jar")
198
199 // publish test jar, sources, and docs
200 // publishArtifact in Test := true
201
202 // disable publishing of main docs
203 // publishArtifact in (Compile, packageDoc) := false
204
205 // change the classifier for the docs artifact
206 // artifactClassifier in packageDoc := Some("doc")
207
208 // Copy all managed dependencies to <build-root>/lib_managed/
209 // This is essentially a project-local cache and is different
210 // from the lib_managed/ in sbt 0.7.x. There is only one
211 // lib_managed/ in the build root (not per-project).
212 // retrieveManaged := true
213
214
Something went wrong with that request. Please try again.