-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
67 lines (62 loc) · 2.75 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
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._
import UnidocKeys._
lazy val commonSettings = Seq(
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
organization := "bluelatex",
version := "2.0.0-SNAPSHOT",
scalaVersion := "2.11.7",
scalacOptions in (Compile,doc) ++= Seq("-groups", "-implicits"),
autoAPIMappings := true,
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked")) ++ scalariformSettings ++ Seq(
ScalariformKeys.preferences := {
ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, true)
})
lazy val bluelatex = project.in(file("."))
.enablePlugins(JavaServerAppPackaging)
.settings(commonSettings: _*)
.settings(unidocSettings: _*)
.settings(
name := "bluelatex",
scalacOptions in (ScalaUnidoc, unidoc) += "-Ymacro-expand:none",
fork := true,
maintainer in Linux := "The \\BlueLaTeX Teams <[email protected]>",
packageSummary in Linux := "\\BlueLaTeX core server",
packageDescription := """\BlueLaTeX is a server that allows for real-time collaborative document editing.
|It provides alle the basic functionalities to manager user accounts, document management,
|right management and more.
|The server exposes a clean an documented Rest API so that several clients may interact with it.""".stripMargin,
daemonUser in Linux := normalizedName.value,
daemonGroup in Linux := (daemonUser in Linux).value)
.aggregate(core)
lazy val coreDeps = Seq(
"com.typesafe.akka" %% "akka-http-experimental" % "2.0.1",
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % "2.0.1",
"com.typesafe.akka" %% "akka-testkit" % "2.4.1" % "test",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.3",
"org.slf4j" % "jcl-over-slf4j" % "1.7.13",
"net.ceedubs" %% "ficus" % "1.1.2",
"com.github.pathikrit" %% "better-files" % "2.13.0",
"com.lihaoyi" %% "fastparse" % "0.3.3",
"com.typesafe" % "config" % "1.3.0",
"com.github.scopt" %% "scopt" % "3.3.0")
lazy val core = project
.enablePlugins(BuildInfoPlugin)
.settings(commonSettings: _*)
.settings(
name := "core",
buildInfoKeys := Seq[BuildInfoKey](
version,
scalaVersion,
BuildInfoKey.action("buildTime") {
System.currentTimeMillis
}
),
buildInfoPackage := "bluelatex",
buildInfoObject := "BlueLaTeXInfo",
libraryDependencies ++= coreDeps)