-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
79 lines (66 loc) · 2.36 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
name := "scala-openrtb"
version in ThisBuild := "1.4.0"
scalaVersion in ThisBuild := "2.13.1"
crossScalaVersions in ThisBuild := Seq("2.12.10", "2.13.1")
organization in ThisBuild := "com.powerspace.openrtb"
organizationName in ThisBuild := "Powerspace"
organizationHomepage := Some(url("https://powerspace.com/"))
scalacOptions in ThisBuild := Seq(
"-unchecked",
"-feature",
"-deprecation",
"-encoding",
"utf8",
"-opt:l:default,l:inline,l:method",
"-unchecked",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-language:postfixOps",
"-language:implicitConversions",
"-language:existentials",
"-language:higherKinds"
)
publishArtifact in root := false
val testSettings = Seq(
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.0.8" % "test",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"org.scalamock" %% "scalamock" % "4.4.0" % "test")
)
// OpenRTB Scala model
lazy val openRtbModel = Project(id = "openrtb-model", base = file("openrtb-model"))
.settings(testSettings: _*)
// OpenRTB JSON Serialization & Deserialization
lazy val openRtbJson = Project(id = "openrtb-json", base = file("openrtb-json"))
.dependsOn(openRtbModel)
// BidSwitch Scala model
lazy val bidswitchModel = Project(id = "bidswitch-model", base = file("bidswitch-model"))
.dependsOn(openRtbModel % "compile->compile;test->test")
// BidSwitch JSON Serialization & Deserialization
lazy val bidswitchJson = Project(id = "bidswitch-json", base = file("bidswitch-json"))
.dependsOn(bidswitchModel % "compile->compile;test->test", openRtbJson % "compile->compile;test->test")
.settings(testSettings: _*)
// Akka Http marshallers and unmarshallers
lazy val akkaHttpMarshaller = Project(id = "akka-http-marshallers", base = file("akka-http-marshallers"))
.dependsOn(openRtbJson)
// scala-openrtb examples
lazy val examples = Project(id = "examples", base = file("examples"))
.dependsOn(openRtbJson % "compile->compile;test->test")
.settings(skip in publish := true)
lazy val benchmarks = Project(id = "benchmarks", base = file("benchmarks"))
.enablePlugins(JmhPlugin)
.dependsOn(
openRtbJson,
examples
)
.settings(skip in publish := true)
lazy val root = (project in file("."))
.aggregate(
openRtbModel,
openRtbJson,
bidswitchModel,
bidswitchJson,
akkaHttpMarshaller,
examples,
benchmarks
)