forked from allenai/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
68 lines (61 loc) · 2.32 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
lazy val buildSettings = Seq(
organization := "org.allenai.common",
crossScalaVersions := Seq(Dependencies.defaultScalaVersion),
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")),
apiURL := Some(url("https://allenai.github.io/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 cache = Project(id = "cache", base = file("cache"))
.settings(buildSettings)
.enablePlugins(LibraryPlugin)
.dependsOn(core, testkit % "test->compile")
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 indexing = Project(id = "indexing", base = file("indexing"))
.settings(buildSettings)
.enablePlugins(LibraryPlugin)
.dependsOn(core, testkit % "test->compile")
lazy val testkit = Project(id = "testkit", base = file("testkit"))
.settings(buildSettings)
.enablePlugins(LibraryPlugin)
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 := { },
scaladocGenGitRemoteRepo := "[email protected]:allenai/common.git"
).aggregate(
cache,
core,
guice,
indexing,
testkit,
webapp
).enablePlugins(LibraryPlugin, ScaladocGenPlugin)