-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (55 loc) · 1.86 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
import Settings._
import scala.Console._
shellPrompt.in(ThisBuild) := (state => s"${CYAN}project:$GREEN${Project.extract(state).currentRef.project}$RESET> ")
lazy val commonSettings = Vector(
organization := "io.github.povder.unipool",
organizationName := "Krzysztof Pado",
scalaVersion := "2.12.6",
crossScalaVersions := Vector(scalaVersion.value, "2.11.12"),
licenses := Vector(
"Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")
),
startYear := Some(Copyright.startYear),
homepage := Some(url("https://github.com/povder/unipool")),
scmInfo := Some(
ScmInfo(
url("https://github.com/povder/unipool"),
"scm:[email protected]:povder/unipool.git"
)
),
buildInfoKeys := Vector(version, scalaVersion, git.gitHeadCommit, BuildInfoKey.action("buildTime") {
java.time.Instant.now()
}),
scalastyleFailOnError := true
) ++ compilationConf ++ scaladocConf ++ developersConf ++ publishConf ++ testConf
lazy val root = (project in file("."))
.settings(commonSettings: _*)
.settings(
publishArtifact := false
)
.aggregate(`unipool-scala`, `unipool-java`)
lazy val `unipool-scala` = (project in file("unipool-scala"))
.enablePlugins(BuildInfoPlugin)
.settings(commonSettings: _*)
.settings(
name := "unipool-scala",
libraryDependencies ++= Vector(
Library.stm,
Library.scalaLogging,
Library.scalatest % Test,
Library.scalamock % Test
),
scalacOptions in(Compile, doc) ++= Vector(
"-doc-title", "unipool - universal non-blocking resource pool"
),
buildInfoPackage := "io.github.povder.unipool"
)
lazy val `unipool-java` = (project in file("unipool-java"))
.settings(commonSettings: _*)
.settings(
name := "unipool-java",
libraryDependencies ++= Vector(
Library.immutables % Provided,
Library.java8Compat
),
).dependsOn(`unipool-scala`)