-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
82 lines (72 loc) · 2.03 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
name := ""
import SharedBuild.{ doPublish, noPublish, RepoInfo }
com.typesafe.sbt.SbtScalariform.defaultScalariformSettings
scalaVersion in ThisBuild := "2.11.8"
organization in ThisBuild := "io.malcolmgreaves"
version in ThisBuild := {
val major: Int = 0
val minor: Int = 1
val patch: Int = 1
s"$major.$minor.$patch"
}
lazy val root = project
.in(file("."))
.aggregate(
`smo-fun-cmd`,
`smo-fun-core`
)
.settings { noPublish }
lazy val `smo-fun-core` = project
.in(file("smo-fun-core"))
.settings {
doPublish(RepoInfo(group = "malcolmgreaves", name = "smo-fun"))
}
lazy val `smo-fun-cmd` = project
.in(file("smo-fun-cmd"))
.dependsOn(`smo-fun-core`)
.settings { noPublish }
lazy val subprojects: Seq[ProjectReference] = root.aggregate
lazy val publishTasks = subprojects.map { publish.in }
resolvers in ThisBuild := Seq(
// sonatype, maven central
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
// bintray
"Scalaz Bintray" at "http://dl.bintray.com/scalaz/releases",
Resolver.bintrayRepo("mfglabs", "maven"),
Resolver.bintrayRepo("dwhjames", "maven"),
// etc.
"Confluent" at "http://packages.confluent.io/maven/"
)
lazy val javaV = "1.8"
scalacOptions in ThisBuild := Seq(
"-optimize",
"-deprecation",
"-feature",
"-unchecked",
s"-target:jvm-$javaV",
"-encoding",
"utf8",
"-language:postfixOps",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-language:reflectiveCalls",
"-Yno-adapted-args",
"-Ywarn-value-discard",
"-Xlint",
"-Xfuture",
"-Ywarn-dead-code",
"-Yinline-warnings",
"-Xfatal-warnings" // Every warning is esclated to an error.
)
javacOptions in ThisBuild := Seq("-source", javaV, "-target", javaV)
javaOptions in ThisBuild := Seq(
"-server",
"-XX:+AggressiveOpts",
"-XX:+TieredCompilation",
"-XX:CompileThreshold=100",
"-Xmx3000M",
"-XX:+UseG1GC"
)