-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
87 lines (80 loc) · 2.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
lazy val root = (project in file(".")).aggregate(influentJava, influentTransport)
lazy val influentJava = (project in file("influent-java"))
.settings(commonSettings: _*)
.settings(javaSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "influent-java",
libraryDependencies ++= Seq(
"org.msgpack" % "msgpack-core" % "0.8.16"
)
)
.dependsOn(influentTransport)
.enablePlugins(AutomateHeaderPlugin)
lazy val influentTransport = (project in file("influent-transport"))
.settings(commonSettings: _*)
.settings(javaSettings: _*)
.settings(publishSettings: _*)
.settings(
name := "influent-transport"
)
.enablePlugins(AutomateHeaderPlugin)
lazy val influentJavaExample = (project in file("influent-java-example"))
.settings(commonSettings: _*)
.settings(javaSettings: _*)
.settings(
name := "influent-java-example",
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3"
),
assemblyJarName in assembly := "influent-java-example.jar"
).dependsOn(influentJava)
.enablePlugins(AutomateHeaderPlugin)
lazy val commonSettings = Seq(
organization := "com.okumin",
version := "0.4.0-M1",
scalaVersion := "2.12.6",
fork in Test := true,
javacOptions in (Compile, doc) ++= Seq("-locale", "en_US"),
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8"),
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.25",
"org.mockito" % "mockito-core" % "2.28.2" % "test",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"org.scalacheck" %% "scalacheck" % "1.14.0" % "test"
),
// sbt-header settings
organizationName := "okumin",
startYear := Some(2016),
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
)
lazy val javaSettings = Seq(
crossPaths := false,
autoScalaLibrary := false
)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => 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")
},
pomExtra := {
<url>https://github.com/okumin/influent</url>
<scm>
<url>[email protected]:okumin/influent.git</url>
<connection>scm:git:[email protected]:okumin/influent.git</connection>
</scm>
<developers>
<developer>
<id>okumin</id>
<name>okumin</name>
<url>http://okumin.com/</url>
</developer>
</developers>
}
)