-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.sbt
52 lines (41 loc) · 1.45 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
organization in ThisBuild := "net.tixxit"
licenses in ThisBuild += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
scalaVersion in ThisBuild := "2.11.8"
scalacOptions in ThisBuild ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:higherKinds",
"-optimize")
maxErrors in ThisBuild := 5
resolvers in ThisBuild ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.typesafeRepo("releases")
)
addCommandAlias("publishDocs", ";framian/packageDoc;framian/ghpagesPushSite")
lazy val root = project.
in(file(".")).
aggregate(framianMacros, framian, framianBenchmarks, docs).
settings(Publish.skip: _*)
lazy val framianMacros = project.
in(file("framian-macros")).
settings(Publish.skip: _*)
lazy val framian = project.
in(file("framian")).
dependsOn(framianMacros).
settings(
// map framian-macros project classes and sources into framian
mappings in (Compile, packageBin) <++= mappings in (framianMacros, Compile, packageBin),
mappings in (Compile, packageSrc) <++= mappings in (framianMacros, Compile, packageSrc),
Publish.pomDependencyExclusions := Seq("net.tixxit" -> s"framian-macros_${scalaBinaryVersion.value}")
)
lazy val framianBenchmarks = project.
in(file("framian-benchmarks")).
enablePlugins(BenchmarkPlugin).
dependsOn(framian).
settings(Publish.skip: _*)
lazy val docs = project.
in(file("docs")).
dependsOn(framian).
settings(Publish.skip: _*).
settings(tutSettings: _*)