-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
executable file
·88 lines (54 loc) · 2.67 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
// Scalate template engine config for Xitrum
// "import" must be at top of build.sbt, or SBT will complain
import ScalateKeys._
import de.johoop.jacoco4sbt._
import JacocoPlugin._
// Precompile Scalate
seq(scalateSettings:_*)
scalateTemplateConfig in Compile := Seq(TemplateConfig(
file("src") / "main" / "scalate",
Seq(),
Seq(Binding("helper", "xitrum.Action", true))
))
libraryDependencies += "tv.cntt" %% "xitrum-scalate" % "1.9"
unmanagedSourceDirectories in Compile += baseDirectory.value / "src-bibtex"
//------------------------------------------------------------------------------
organization := "de.fraunhofer.scai"
name := "scaltex"
version := "0.6.1"
scalaVersion := "2.11.1"
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked")
// Most Scala projects are published to Sonatype, but Sonatype is not default
// and it takes several hours to sync from Sonatype to Maven Central
resolvers += "SonatypeReleases" at "http://oss.sonatype.org/content/repositories/releases/"
resolvers += "JCenter" at "http://jcenter.bintray.com/"
libraryDependencies += "tv.cntt" %% "xitrum" % "3.13"
// Xitrum uses SLF4J, an implementation of SLF4J is needed
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.2"
// xgettext i18n translation key string extractor is a compiler plugin ---------
autoCompilerPlugins := true
addCompilerPlugin("tv.cntt" %% "xgettext" % "1.0")
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")
// Add scala test and akka testkit
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.1.6" % "test"
libraryDependencies += "com.typesafe.akka" %% "akka-testkit" % "2.3.2" % "test"
// dijon as json library
resolvers += "Sonatype releases" at "http://oss.sonatype.org/content/repositories/releases/"
libraryDependencies += "com.github.pathikrit" %% "dijon" % "0.2.4"
// Enable code coverage
jacoco.settings
// apache commons (for src-bibtex)
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.3.2"
// curl for scala
libraryDependencies += "com.m3" %% "curly-scala" % "0.5.4"
// scopt is a little command line options parsing libary
libraryDependencies += "com.github.scopt" %% "scopt" % "3.2.0"
// markwrap convertes markdown to html
libraryDependencies += "org.clapper" %% "markwrap" % "1.0.2"