forked from allenai/common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
45 lines (41 loc) · 1.6 KB
/
build.sbt
File metadata and controls
45 lines (41 loc) · 1.6 KB
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
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 := Seq("Apache 2.0" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/allenai/common")),
scmInfo := Some(ScmInfo(
url("https://github.com/allenai/common"),
"https://github.com/allenai/common.git")),
ReleaseKeys.publishArtifactsAction := PgpKeys.publishSigned.value,
pomExtra := (
<developers>
<developer>
<id>allenai-dev-role</id>
<name>Allen Institute for Artificial Intelligence</name>
<email>dev-role@allenai.org</email>
</developer>
</developers>)
) ++ PublishTo.sonatype
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 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(webapp, core, testkit).enablePlugins(LibraryPlugin)