forked from Bayer-Group/cloudformation-template-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
70 lines (48 loc) · 1.36 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
import sbt.Keys._
name := "cloud-formation-template-generator"
organization := "com.monsanto.arch"
startYear := Some(2014)
// scala versions and options
scalaVersion := "2.11.7"
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation"
,"-unchecked"
,"-encoding", "UTF-8"
,"-Xlint"
// "-optimise" // this option will slow your build
)
scalacOptions ++= Seq(
"-Yclosure-elim",
"-Yinline"
)
// These language flags will be used only for 2.10.x.
scalacOptions <++= scalaVersion map { sv =>
if (sv startsWith "2.11") List(
"-Xverify"
,"-feature"
,"-language:postfixOps"
)
else Nil
}
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
// dependencies
libraryDependencies ++= Seq (
// -- testing --
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
// -- json --
,"io.spray" %% "spray-json" % "1.3.2"
).map(_.force())
resolvers ++= Seq(
"spray repo" at "http://repo.spray.io",
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
// for ghpages
site.settings
site.includeScaladoc()
ghpages.settings
git.remoteRepo := "git@github.com:MonsantoCo/cloudformation-template-generator.git"
// for bintray
bintrayOrganization := Some("monsanto")
licenses += ("BSD", url("http://opensource.org/licenses/BSD-3-Clause"))