-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
60 lines (49 loc) · 2.02 KB
/
build.sbt
File metadata and controls
60 lines (49 loc) · 2.02 KB
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
import play.sbt.PlayLayoutPlugin
import play.twirl.sbt.SbtTwirl
lazy val commonSettings = Seq(
version := "1.0.0-SNAPSHOT",
organization := "org.combinators",
scalaVersion := "2.12.4",
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.typesafeRepo("releases")
),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:implicitConversions"
),
libraryDependencies ++= Seq(
"org.combinators" %% "cls-scala" % "2.0.0-RC1",
"org.combinators" %% "templating" % "1.0.0-RC1+4-ca285511",
"org.combinators" %% "cls-scala-presentation-play-git" % "1.0.0-RC1+8-63d5cf0b",
"org.scalactic" %% "scalactic" % "3.0.1" % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
// "org.scala-graph" %% "graph-core" % "1.12.5",
guice
)
)
lazy val root = (Project(id = "splc19", base = file(".")))
.settings(commonSettings: _*)
.enablePlugins(SbtTwirl)
.enablePlugins(PlayScala)
.disablePlugins(PlayLayoutPlugin)
.settings(
moduleName := "splc19",
sourceDirectories in (Compile, TwirlKeys.compileTemplates) := Seq(
sourceDirectory.value / "main" / "java-templates",
sourceDirectory.value / "main" / "python-templates"
),
TwirlKeys.templateFormats += ("java" -> "org.combinators.templating.twirl.JavaFormat"),
TwirlKeys.templateImports := Seq(),
TwirlKeys.templateImports += "org.combinators.templating.twirl.Java",
TwirlKeys.templateImports += "com.github.javaparser.ast._",
TwirlKeys.templateImports += "com.github.javaparser.ast.body._",
TwirlKeys.templateImports += "com.github.javaparser.ast.comments._",
TwirlKeys.templateImports += "com.github.javaparser.ast.expr._",
TwirlKeys.templateImports += "com.github.javaparser.ast.stmt._",
TwirlKeys.templateImports += "com.github.javaparser.ast.`type`._",
unmanagedResourceDirectories in Compile += sourceDirectory.value / "main" / "java",
PlayKeys.playMonitoredFiles ++= (sourceDirectories in (Compile, TwirlKeys.compileTemplates)).value
)