forked from mjreid/flink-rest-scala-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
60 lines (45 loc) · 1.46 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
import sbt.url
name := "flink-rest-scala-wrapper"
lazy val commonSettings = Seq(
organization := "com.github.mjreid",
version := "0.0.3-SNAPSHOT",
scalaVersion := "2.11.11"
)
lazy val root = project.in(file("."))
.settings(commonSettings)
.settings(publish := { })
.settings(publishArtifact := false)
.aggregate(api, sampleApp)
lazy val api = project.in(file("api"))
.settings(commonSettings)
.settings(name := "flink-wrapper")
.settings(libraryDependencies ++= Dependencies.all)
.settings(Seq(
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
sonatypeProfileName := "com.github.mjreid",
publishMavenStyle := true,
homepage := Some(url("https://github.com/mjreid/flink-rest-scala-wrapper")),
scmInfo := Some(
ScmInfo(
url("https://github.com/mjreid/flink-rest-scala-wrapper.git"),
"scm:[email protected]:mjreid/flink-rest-scala-wrapper.git"
)
),
developers := List(
Developer(id="mjreid", name="Michael Reid", email="[email protected]", url=url("https://github.com/mjreid/"))
))
)
lazy val sampleApp = project.in(file("sample-app"))
.settings(commonSettings)
.settings(name := "sample-app")
.settings(publish := { })
.settings(publishArtifact := false)
.dependsOn(api)
// Sonatype/maven publishing stuff
useGpg := true
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)