forked from paypal/squbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
117 lines (87 loc) · 3.66 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
scalaVersion in ThisBuild := "2.11.7"
organization in ThisBuild := "org.squbs"
publishArtifact := false
coverageEnabled in ThisBuild := true
coverageMinimum in ThisBuild := 70.0
coverageFailOnMinimum in ThisBuild := true
fork in ThisBuild := true
parallelExecution in ThisBuild := false
updateOptions in ThisBuild := updateOptions.value.withCachedResolution(true)
val par = {
val travis = sys.env.getOrElse("TRAVIS", default = "false") == "true"
val pr = sys.env.getOrElse("TRAVIS_PULL_REQUEST", default = "") != "false"
if (travis && pr) 1
else sys.runtime.availableProcessors
}
concurrentRestrictions in Global := Seq(Tags.limitAll(par))
lazy val `squbs-pipeline` = project
lazy val `squbs-streamingpipeline` = project
lazy val `squbs-unicomplex` = project dependsOn (`squbs-pipeline`, `squbs-streamingpipeline`)
lazy val `squbs-testkit` = project dependsOn `squbs-unicomplex`
lazy val `squbs-zkcluster` = project dependsOn `squbs-testkit` % "test"
lazy val `squbs-httpclient` = project dependsOn(`squbs-unicomplex`, `squbs-testkit` % "test")
// Add SlowTest configuration to squbs-pattern to run the long-running tests.
// To run standard tests> test
// To run slow tests including all stress tests> slow:test
lazy val SlowTest = config("slow") extend Test
// Setup squbs-pattern with slow tests enabled.
// Perhaps we can do it better in future by hiding the details in the plugin.
lazy val `squbs-pattern` = (project dependsOn `squbs-testkit` % "test")
.configs(SlowTest)
.settings(inConfig(SlowTest)(Defaults.testTasks): _*)
.settings(testOptions in SlowTest := Seq.empty)
// Information for debugging tests and test launchers inside sbt.
// val DebugTest = config("dtest") extend Test
//
// lazy val myProj = project
// .configs(DebugTest).
// settings(inConfig(DebugTest)(Defaults.testSettings):_*).
// settings(
// fork in DebugTest := true,
// javaOptions in DebugTest += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005",
// definedTests in DebugTest := (definedTests in Test).value
// )
lazy val `squbs-actorregistry` = project dependsOn (`squbs-unicomplex`, `squbs-testkit` % "test")
lazy val `squbs-actormonitor` = project dependsOn (`squbs-unicomplex`, `squbs-testkit` % "test")
lazy val `squbs-admin` = project dependsOn (`squbs-unicomplex`, `squbs-testkit` % "test")
lazy val `squbs-admin-exp` = project dependsOn (`squbs-unicomplex`, `squbs-testkit` % "test")
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle in ThisBuild := true
publishArtifact in Test := false
pomIncludeRepository in ThisBuild := { _ => false }
pomExtra in ThisBuild :=
<url>https://github.com/paypal/squbs</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:paypal/squbs.git</url>
<connection>scm:git:[email protected]:paypal/squbs.git</connection>
</scm>
<developers>
<developer>
<id>akara</id>
<name>Akara Sucharitakul</name>
<url>https://github.com/akara</url>
</developer>
<developer>
<id>az-qbradley</id>
<name>Qian Bradley</name>
<url>https://github.com/az-qbradley</url>
</developer>
<developer>
<id>anilgursel</id>
<name>Anil Gursel</name>
<url>https://github.com/anilgursel</url>
</developer>
</developers>