This repository has been archived by the owner on Nov 22, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
79 lines (72 loc) · 2.24 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
lazy val commonSettings = Seq(
organization := "net.fehmicansaglam",
version := "0.6-SNAPSHOT",
scalaVersion := "2.11.7",
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import" // 2.11 only
),
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
) ++ publishSettings
shellPrompt in ThisBuild := Common.prompt
lazy val root = project.in(file("."))
.aggregate(bson, tepkin, pide, examples)
.settings(commonSettings: _*)
.settings(publishArtifact := false)
lazy val bson = project.in(file("bson"))
.settings(commonSettings: _*)
lazy val tepkin = project.in(file("tepkin"))
.settings(commonSettings: _*)
.dependsOn(bson)
lazy val pide = project.in(file("pide"))
.settings(commonSettings: _*)
.dependsOn(tepkin)
lazy val examples = project.in(file("examples"))
.dependsOn(pide)
.settings(commonSettings: _*)
.settings(publishArtifact := false)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := (
<url>http://github.com/fehmicansaglam/tepkin</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:fehmicansaglam/tepkin.git</url>
<connection>scm:git@github.com:fehmicansaglam/tepkin.git</connection>
</scm>
<developers>
<developer>
<id>fehmicansaglam</id>
<name>Fehmi Can Saglam</name>
<url>http://github.com/fehmicansaglam</url>
</developer>
</developers>
)
)