This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
86 lines (65 loc) · 1.92 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
import scalariform.formatter.preferences._
name := "akka-stream-trace-package"
version := "0.3-SNAPSHOT"
organization := "net.findhotel"
val scalaV = scalaVersion := "2.11.8"
val joda = "joda-time" % "joda-time" % "2.8.1"
val conf = "com.typesafe" % "config" % "1.3.0"
val akka = {
val httpV = "10.0.0"
Seq(
"com.typesafe.akka" %% "akka-http" % httpV,
"com.typesafe.akka" %% "akka-http-testkit" % httpV
)
}
val trace = {
Seq(
"org.apache.htrace" % "htrace-core4" % "4.3.0-SNAPSHOT",
"org.apache.htrace" % "htrace-zipkin" % "4.3.0-SNAPSHOT"
)
}
val test = Seq("org.scalactic" %% "scalactic" % "3.0.0", "org.scalatest" %% "scalatest" % "3.0.0" % "test")
val apache_oss = "Apache OSS Snapshots" at "https://repository.apache.org/content/groups/snapshots/"
fork in run := true
lazy val core = project.in( file("modules/core") )
.settings(
libraryDependencies ++= Seq(conf,joda)++ akka ++ trace ++ test,
scalaV,
resolvers ++= Seq(
Resolver.mavenLocal,
apache_oss
)
)
lazy val examples = project.in( file("modules/examples") )
.settings(
libraryDependencies ++= akka,
scalaV,
resolvers ++= Seq(
Resolver.mavenLocal,
apache_oss
)
).dependsOn(core)
licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
homepage := Some(url("http://company.findhotel.net"))
scmInfo := Some(
ScmInfo(
url("https://github.com/FindHotel/akka-stream-trace"),
"scm:[email protected]:FindHotel/akka-stream-trace.git"
)
)
developers := List(
Developer(
id = "raam86",
name = "Raam Rosh Hai",
email = "[email protected]",
url = url("https://github.com/raam86")
)
)
publishMavenStyle := true
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")
}