-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
91 lines (70 loc) · 3.58 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
83
84
85
86
87
88
89
90
name := "unicorn"
import com.typesafe.sbt.pgp.PgpKeys.{useGpg, publishSigned, publishLocalSigned}
lazy val commonSettings = Seq(
organization := "com.github.haifengl",
organizationName := "Haifeng Li",
organizationHomepage := Some(url("http://haifengl.github.io/")),
version := "2.1.1",
scalaVersion := "2.11.8",
scalacOptions := Seq("-feature", "-language:_", "-unchecked", "-deprecation", "-encoding", "utf8"),
scalacOptions in Test ++= Seq("-Yrangepos"),
libraryDependencies += "org.specs2" %% "specs2-core" % "3.7" % "test",
parallelExecution 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")
},
publishArtifact in Test := false ,
publishMavenStyle := true,
useGpg := true,
pomIncludeRepository := { _ => false },
pomExtra := (
<url>https://github.com/haifengl/unicorn</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:haifengl/unicorn.git</url>
<connection>scm:git:[email protected]:haifengl/unicorn.git</connection>
</scm>
<developers>
<developer>
<id>haifengl</id>
<name>Haifeng Li</name>
<url>http://haifengl.github.io/</url>
</developer>
</developers>
)
)
lazy val nonPubishSettings = commonSettings ++ Seq(
publishArtifact := false,
publishLocal := {},
publish := {},
publishSigned := {},
publishLocalSigned := {}
)
lazy val root = project.in(file(".")).settings(nonPubishSettings: _*)
.aggregate(util, oid, json, bigtable, hbase, cassandra, accumulo, rocksdb, unibase, narwhal, sql, shell, rhino)
lazy val util = project.in(file("util")).settings(commonSettings: _*)
lazy val oid = project.in(file("oid")).settings(commonSettings: _*).dependsOn(util)
lazy val json = project.in(file("json")).settings(commonSettings: _*).dependsOn(oid)
lazy val bigtable = project.in(file("bigtable")).settings(commonSettings: _*).dependsOn(util)
lazy val hbase = project.in(file("hbase")).settings(commonSettings: _*).dependsOn(bigtable)
lazy val accumulo = project.in(file("accumulo")).settings(commonSettings: _*).dependsOn(bigtable)
lazy val cassandra = project.in(file("cassandra")).settings(commonSettings: _*).dependsOn(bigtable, util)
lazy val rocksdb = project.in(file("rocksdb")).settings(commonSettings: _*).dependsOn(bigtable, util)
//lazy val index = project.in(file("index")).settings(nonPubishSettings: _*).dependsOn(bigtable, json, hbase % "test")
lazy val unibase = project.in(file("unibase")).settings(commonSettings: _*).dependsOn(json, oid, bigtable, accumulo % "test")
lazy val narwhal = project.in(file("narwhal")).settings(commonSettings: _*).dependsOn(unibase, hbase)
lazy val sql = project.in(file("sql")).settings(commonSettings: _*).dependsOn(util, narwhal)
//lazy val transaction = project.in(file("transaction")).settings(commonSettings: _*).dependsOn(util, narwhal)
//lazy val search = project.in(file("search")).settings(nonPubishSettings: _*).dependsOn(unibase)
lazy val shell = project.in(file("shell")).settings(nonPubishSettings: _*).dependsOn(unibase, narwhal, sql, hbase, cassandra, accumulo, rocksdb)
lazy val rhino = project.in(file("rhino")).enablePlugins(SbtTwirl).settings(nonPubishSettings: _*).dependsOn(unibase, hbase, cassandra, accumulo, rocksdb)