forked from allenai/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
51 lines (46 loc) · 1.76 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
lazy val buildSettings = Seq(
organization := "org.allenai.common",
crossScalaVersions := Seq("2.11.5"),
scalaVersion <<= crossScalaVersions { (vs: Seq[String]) => vs.head },
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/allenai/common")),
scmInfo := Some(ScmInfo(
url("https://github.com/allenai/common"),
"https://github.com/allenai/common.git")),
pomExtra := (
<developers>
<developer>
<id>allenai-dev-role</id>
<name>Allen Institute for Artificial Intelligence</name>
<email>[email protected]</email>
</developer>
</developers>),
bintrayPackage := s"${organization.value}:${name.value}_${scalaBinaryVersion.value}"
)
lazy val testkit = Project(
id = "testkit",
base = file("testkit"),
settings = buildSettings
).enablePlugins(LibraryPlugin)
lazy val core = Project(
id = "core",
base = file("core"),
settings = buildSettings
).enablePlugins(LibraryPlugin).dependsOn(testkit % "test->compile")
lazy val guice = Project(
id = "guice",
base = file("guice"),
settings = buildSettings
).enablePlugins(LibraryPlugin).dependsOn(core, testkit % "test->compile")
lazy val webapp = Project(
id = "webapp",
base = file("webapp"),
settings = buildSettings
).enablePlugins(LibraryPlugin).dependsOn(core, testkit % "test->compile")
lazy val common = Project(id = "common", base = file(".")).settings(
// Don't publish a jar for the root project.
publishArtifact := false, publishTo := Some("dummy" at "nowhere"), publish := { }, publishLocal := { }
).aggregate(core, guice, testkit, webapp).enablePlugins(LibraryPlugin)