-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
121 lines (98 loc) · 3.42 KB
/
build.sbt
File metadata and controls
121 lines (98 loc) · 3.42 KB
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
118
119
120
121
name := "notification-utils"
organization in ThisBuild := "com.miq.caps"
version in ThisBuild := "0.1"
scalaVersion in ThisBuild := "2.12.4"
lazy val build = (project in file("."))
.settings(
// ensures minimum coverage for package to be built
coverageMinimum := 80,
coverageFailOnMinimum := true
)
.aggregate(vertxUtils, parserUtils, commons, core)
lazy val vertxUtils = (project in file("vertx-utils"))
.settings(
name := "vertx-utils",
commonSettings,
libraryDependencies ++= dependencies.test ++ dependencies.circe ++ dependencies.vertx
)
lazy val parserUtils = (project in file("parser-utils"))
.settings(
name := "parser-utils",
commonSettings,
libraryDependencies ++= dependencies.test ++ dependencies.circe ++ dependencies.vertx
)
.dependsOn(vertxUtils)
lazy val commons = (project in file("notification-utils-commons"))
.settings(
name := "notification-utils-commons",
commonSettings,
libraryDependencies ++= dependencies.test ++ dependencies.circe :+ dependencies.st4
)
lazy val core = (project in file("notification-utils-core"))
.settings(
name := "notification-utils-core",
commonSettings,
libraryDependencies ++= dependencies.test ++ dependencies.vertx ++ dependencies.logging :+ dependencies.config :+ dependencies.commonsEmail,
excludeDependencies ++= Seq(
ExclusionRule("org.slf4j", "slf4j-log4j12"),
ExclusionRule("log4j", "log4j")
)
)
.dependsOn(commons % "test->test;compile->compile", vertxUtils % "test->test;compile->compile", parserUtils % "test->test;compile->compile")
lazy val sample = (project in file("sample-service"))
.settings(
name := "sample-service",
libraryDependencies ++= Seq(
dependencies.vertxWeb,
"com.miq.caps" %% "notification-utils-core" % "0.1"
)
)
lazy val dependencies = new {
private val configVersion = "1.3.2"
val config = "com.typesafe" % "config" % configVersion
private val scalatestVersion = "3.0.0"
private val scalacheckVersion = "1.14.0"
val test = Seq(
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
"org.scalacheck" %% "scalacheck" % scalacheckVersion % Test
)
private val vertxVersion = "3.5.0"
val vertx = Seq(
"io.vertx" %% "vertx-lang-scala" % vertxVersion,
"io.vertx" %% "vertx-web-client-scala" % vertxVersion
)
val vertxWeb = "io.vertx" %% "vertx-web-scala" % vertxVersion
private val circeVersion = "0.9.3"
val circe = Seq(
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-generic-extras" % circeVersion
)
private val scalaLoggingVersion = "3.8.0"
private val logbackVersion = "1.2.3"
val logging = Seq(
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion
)
private val commonsEmailVersion = "1.5"
val commonsEmail = "org.apache.commons" % "commons-email" % commonsEmailVersion
private val st4Version = "4.0.8"
val st4 = "org.antlr" % "ST4" % st4Version
}
lazy val compilerOptions = Seq(
"-unchecked",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-deprecation",
"-encoding",
"utf8"
)
lazy val commonSettings = Seq(
scalacOptions ++= compilerOptions,
fork in run := true,
publishArtifact in Test := true
)