forked from scalate/scalate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
219 lines (199 loc) · 7.61 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
name := "Scalate"
organization := "org.scalatra.scalate"
version := "1.8.1-SNAPSHOT"
scalaVersion := crossScalaVersions.value.head
crossScalaVersions := Seq("2.12.1", "2.11.8", "2.10.6")
javaVersionPrefix in javaVersionCheck := Some("1.8")
javacOptions ++= Seq("-source", "1.8")
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
startYear := Some(2010)
licenses += "The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
scmInfo := Some(
ScmInfo(url("http://github.com/scalate/scalate"),
"scm:git:git://github.com/scalate/scalate.git",
Some("scm:git:ssh://[email protected]:scalate/scalate.git"))
)
homepage := Some(url("http://scalate.github.io/scalate"))
unidocOpts(filter = scalateJrebel, scalateWar, scalateWeb)
notPublished
lazy val scalateUtil = scalateProject("util")
.scalateSettings
.osgiSettings
.published
.dependsOn(junit % Test, logbackClassic % Test, scalaTest % Test, slf4jApi)
.settings(
description := "Scalate Utilities.",
parallelExecution in Test := false,
addScalaModules(11, scalaXml, scalaParserCombinators),
addScalaModules(12, scalaXml, scalaParserCombinators),
unmanagedSourceDirectories in Test += (sourceDirectory in Test).value / s"scala_${scalaBinaryVersion.value}")
lazy val scalateCore = scalateProject("core")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateUtil)
.dependsOn(
javaxServlet % Optional,
logbackClassic % "runtime,optional",
osgiCore % "provided,optional",
rhinoCoffeeScript % Optional,
scalamd % Optional,
scalaTest % Test,
junit % Test)
.settings(
description := "Scalate Core",
libraryDependencies += scalaCompiler(scalaOrganization.value, scalaVersion.value),
OsgiKeys.privatePackage := Seq("org.fusesource.scalate"),
unmanagedSourceDirectories in Compile += (sourceDirectory in Compile).value / s"scala_${scalaBinaryVersion.value}")
lazy val scalateTest = scalateProject("test")
.scalateSettings
.published
.dependsOn(scalateCore)
.dependsOn(jettyServer, jettyWebapp, jettyUtil, scalaTest, junit, seleniumDriver)
.settings(description := "Scalate Test Support Classes.")
lazy val scalateCamel = scalateProject("camel")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.settings(
description := "Camel component for Scalate.",
libraryDependencies ++= Seq(camelScala, camelSpring)
)
lazy val scalateGuice = scalateProject("guice")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore)
.dependsOn(
atmosphereJersey % Provided,
javaxServlet,
jerseyCore,
jerseyGuice,
scalaTest % Test,
junit % Test,
logbackClassic % Test)
.settings(description := "Guice integration for a Jersey based Scalate web application.")
lazy val scalateJrebel = scalateProject("jrebel")
.scalateSettings
.published
.dependsOn(scalateCore)
.dependsOn(jRebelSDK % Provided)
.settings(description := "JRebel plugin for reloading Scalate templates on class reload.")
lazy val scalateJruby = scalateProject("jruby")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.dependsOn(jRubyComplete, logbackClassic % Test)
.settings(description := "Scalate integration with JRuby including Ruby based filters such as sass.")
lazy val scalateJspConverter = scalateProject("jsp-converter")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore)
.dependsOn(karafShell, scalaTest % Test, junit % Test, logbackClassic % Test)
.settings(
description := "Converter for JSP to SSP",
resolvers ++= commonRepositories,
OsgiKeys.privatePackage := Seq("org.fusesource.scalate.converter"),
buildInfoPackage := "org.fusesource.scalate.converter.buildinfo")
lazy val scalateLess = scalateProject("less")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.dependsOn(lessCssEngine, logbackClassic % Test)
.settings(
description := "Scalate LESS filter.",
OsgiKeys.bundleSymbolicName := "org.scalatra.scalate.filter.less",
OsgiKeys.privatePackage := Seq("org.fusesource.scalate.filter.less"))
lazy val scalateMarkdownJ = scalateProject("markdownj")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.dependsOn(markdownJ, scalaTest % Test, junit % Test, logbackClassic % Test)
.settings(
description := "Scalate MarkdownJ filter.",
OsgiKeys.bundleSymbolicName := "org.scalatra.scalate.filter.markdownj",
OsgiKeys.privatePackage := Seq("org.fusesource.scalate.filter.markdownj"))
lazy val scalatePage = scalateProject("page")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateWikitext, scalateTest % Test)
.dependsOn(rhinoCoffeeScript, scalamd, snakeYaml)
.settings(description := "Scalate multipart page filter (similar to Webgen page format).")
lazy val scalatePegdown = scalateProject("pegdown")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.dependsOn(pegdown)
.settings(
description := "Scalate Pegdown filter.",
OsgiKeys.bundleSymbolicName := "org.scalatra.scalate.filter.pegdown",
OsgiKeys.privatePackage := Seq("org.fusesource.scalate.filter.pegdown"))
lazy val scalateSpringMVC = scalateProject("spring-mvc")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore)
.dependsOn(javaxServlet % Provided, springMVC, scalaTest % Test, junit % Test)
.settings(
description := "Scalate Spring MVC integration.",
OsgiKeys.privatePackage := Seq("org.fusesource.scalate.spring.view"),
buildInfoPackage := "org.fusesource.scalate.spring.buildinfo")
lazy val scalateTool = scalateProject("tool")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore)
.dependsOn(karafShell, confluenceSoap, axis, axisWsdl, jTidy)
.settings(
description := "Scalate Command Line Tool.",
resolvers ++= commonRepositories)
lazy val scalateWar = scalateProject("war")
.scalateSettings
.notPublished
.dependsOn(scalateWeb, scalateJersey, scalateTest % Test)
.dependsOn(logbackClassic, jerseyServer, jerseyCore)
.settings(tomcat(port = 8087, args = Seq("scalate.mode=dev")): _*)
.settings(
description := "Scalate Base Web Application",
publishArtifact in (Compile, packageBin) := false,
parallelExecution in Test := false,
unmanagedResourceDirectories in Test += baseDirectory.value / "src/main/webapp")
lazy val scalateJAXRS = scalateProject("jaxrs")
.scalateSettings
.published
.dependsOn(scalateCore)
.dependsOn(
javaxServlet % Provided,
jaxrsApi % Provided)
.settings(description := "JAXRS integration for a Scalate web application</description>")
lazy val scalateJersey = scalateProject("jersey")
.scalateSettings
.published
.dependsOn(scalateJAXRS, scalateTest % Test)
.dependsOn(
jaxrsApi % Provided,
javaxServlet % Provided,
jerseyCore % Provided,
jerseyServlet % Provided,
jerseyServer % Provided)
.settings(description := "Jersey integration for a Scalate web application")
lazy val scalateWeb = scalateProject("web")
.scalateSettings
.published
.dependsOn(scalatePage, scalateTest % Test)
.dependsOn(javaxServlet % Provided)
.settings(description := "Single dependency for all modules required to use Scalate and common wiki formats.")
lazy val scalateWikitext = scalateProject("wikitext")
.scalateSettings
.osgiSettings
.published
.dependsOn(scalateCore, scalateTest % Test)
.dependsOn(wikitextConfluence, wikitextTextile, logbackClassic % Test)
.settings(description := "Scalate WikiText integration for Markdown and Confluence notations.")