This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.sbt
58 lines (51 loc) · 2.01 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
name := "play-prometheus-filters"
organization := "com.github.stijndehaes"
version := "0.5.0"
lazy val root = (project in file("."))
.settings(
publishTo := {
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 := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
makePomConfiguration ~= { _.withConfigurations(Vector(Compile, Runtime, Optional)) },
pomExtra :=
<url>https://github.com/stijndehaes/play-prometheus-filters</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:stijndehaes/play-prometheus-filters.git</url>
<connection>scm:git:[email protected]:stijndehaes/play-prometheus-filters.git</connection>
</scm>
<developers>
<developer>
<id>stijndehaes</id>
<name>Stijn De Haes</name>
</developer>
</developers>
)
scalaVersion := "2.12.8"
crossScalaVersions := Seq(scalaVersion.value, "2.11.12")
val playVersion = "2.7.1"
libraryDependencies ++= Seq(
"io.prometheus" % "simpleclient" % "0.6.0",
"io.prometheus" % "simpleclient_hotspot" % "0.6.0",
"io.prometheus" % "simpleclient_servlet" % "0.6.0",
// Play libs. Are provided not to enforce a specific version.
"com.typesafe.play" %% "play" % playVersion % Provided,
"com.typesafe.play" %% "play-guice" % playVersion % Provided
)
libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "4.0.2" % Test,
"org.mockito" % "mockito-core" % "2.16.0" % Test
)