-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
53 lines (48 loc) · 2.45 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
name := "metrics-json"
description := "Expose dropwizard metrics in json"
lazy val GlobalSettings = Seq(
organization := "io.tabmo",
scalaVersion := "2.13.1",
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.
"-feature", // Emit warning and location for usages of features that should be imported explicitly.
"-unchecked", // Enable additional warnings where generated code depends on assumptions.
"-Xfatal-warnings", // Fail the compilation if there are any warnings.
"-Xlint", // Enable recommended additional warnings.
"-Ywarn-dead-code", // Warn when dead code is identified.
"-Ywarn-numeric-widen", // Warn when numerics are widened.
"-Xlint:-missing-interpolator"
),
scalacOptions in(Compile, compile) ++= Seq(// Disable for tests
"-Xlint:-missing-interpolator" // Additional warnings (see scalac -Xlint:help)
),
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")),
publishTo := Some("Tabmo Public MyGet" at "https://www.myget.org/F/tabmo-public/maven/"),
credentials += Credentials(Path.userHome / ".sbt" / ".credentials-myget"), // See https://www.scala-sbt.org/1.x/docs/Publishing.html#Credentials and use the API keys from MyGet
releaseCrossBuild := true
)
lazy val root = (project in file("."))
.settings(GlobalSettings)
.aggregate(`metrics-circe`,`metrics-playjson`)
lazy val `metrics-core` = (project in file("modules/metrics-core"))
.settings(GlobalSettings)
.settings(libraryDependencies += "nl.grons" %% "metrics4-scala" % "4.1.1" % Compile)
val circeVersion = "0.13.0"
lazy val `metrics-circe` = (project in file("modules/metrics-circe"))
.settings(GlobalSettings)
.settings(libraryDependencies ++= Seq(
"io.circe" %% "circe-core",
"io.circe" %% "circe-generic",
"io.circe" %% "circe-parser"
).map(_ % circeVersion % Compile))
.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % Test)
.dependsOn(`metrics-core`)
.aggregate(`metrics-core`)
val playJsonVersion = "2.8.1"
lazy val `metrics-playjson` = (project in file("modules/metrics-playjson"))
.settings(GlobalSettings)
.settings(libraryDependencies += "com.typesafe.play" %% "play-json" % playJsonVersion % Compile)
.settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.1" % Test)
.settings(libraryDependencies += "org.joda" % "joda-convert" % "2.2.1" % Compile)
.dependsOn(`metrics-core`)
.aggregate(`metrics-core`)