-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (60 loc) · 2.01 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
import sbt._
import scalariform.formatter.preferences._
name := "FCS Boilerplate"
organization := "com.neilconcepts"
version := "0.1.0-SNAPSHOT"
homepage := Some(url("https://neil-concepts.com"))
startYear := Some(2016)
/* scala versions and options */
scalaVersion := "2.11.8"
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation"
, "-unchecked"
, "-encoding", "UTF-8"
, "-Xlint"
, "-Yclosure-elim"
, "-Yinline"
, "-Xverify"
, "-feature"
, "-language:postfixOps"
//,"-optimise"
)
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7")
javaOptions in Universal ++= Seq(
"-J-server",
"-J-Xms500m -Xmx1g",
"-J-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled",
"-J-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=68",
"-J-XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark",
"-J-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M"
)
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
fork := true
mainClass in Compile := Some("com.neilconcepts.Server")
/* dependencies */
libraryDependencies ++= Seq(
// -- config
"com.typesafe" % "config" % "1.3.0"
// -- testing --
, "org.scalatest" %% "scalatest" % "2.2.4" % "test"
// -- Logging --
, "ch.qos.logback" % "logback-classic" % "1.1.3"
, "com.typesafe.scala-logging" %% "scala-logging" % "3.1.0"
// -- Joda --
, "joda-time" % "joda-time" % "2.7"
// -- Finch --
, "com.github.finagle" %% "finch-core" % "0.10.0"
, "com.github.finagle" %% "finch-circe" % "0.10.0"
// -- Shapeless --
, "com.chuusai" %% "shapeless" % "2.3.0"
)
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(IndentLocalDefs, true)
.setPreference(IndentPackageBlocks, true)
.setPreference(IndentSpaces, 2)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, false)