This repository has been archived by the owner on Aug 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
executable file
·62 lines (40 loc) · 1.97 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
organization := "com.aivean"
name := "iso-rpg"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.6"
//scalaVersion := "2.10.5"
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked")
// Xitrum requires Java 7
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
//------------------------------------------------------------------------------
resolvers += "bintray/meetup" at "http://dl.bintray.com/meetup/maven"
//------------------------------------------------------------------------------
libraryDependencies += "tv.cntt" %% "xitrum" % "3.25.0"
// Xitrum uses SLF4J, an implementation of SLF4J is needed
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.3"
// For writing condition in logback.xml
libraryDependencies += "org.codehaus.janino" % "janino" % "2.7.8"
libraryDependencies += "org.webjars" % "jquery" % "2.1.4"
libraryDependencies += "org.webjars" % "bootstrap" % "3.3.5"
// Scalate template engine config for Xitrum -----------------------------------
libraryDependencies += "tv.cntt" %% "xitrum-scalate" % "2.5"
// Archery
libraryDependencies += "com.meetup" %% "archery" % "0.4.0"
// Precompile Scalate templates
seq(scalateSettings:_*)
ScalateKeys.scalateTemplateConfig in Compile := Seq(TemplateConfig(
baseDirectory.value / "src" / "main" / "scalate",
Seq(),
Seq(Binding("helper", "xitrum.Action", true))
))
// xgettext i18n translation key string extractor is a compiler plugin ---------
autoCompilerPlugins := true
addCompilerPlugin("tv.cntt" %% "xgettext" % "1.3")
scalacOptions += "-P:xgettext:xitrum.I18n"
// Put config directory in classpath for easier development --------------------
// For "sbt console"
unmanagedClasspath in Compile <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }
// For "sbt run"
unmanagedClasspath in Runtime <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }
// Copy these to target/xitrum when sbt xitrum-package is run
XitrumPackage.copy("config", "public", "script")