-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
31 lines (25 loc) · 1.23 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
name := "micrometer-akka-sample"
scalaVersion := "2.13.11"
val akkaVersion = "2.6.21"
val akkaHttpVersion = "10.2.10"
val aspectJVersion = "1.9.19"
val micrometerVersion = "1.11.2"
val prometheusVersion = "0.16.0"
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
enablePlugins(JavaAgent)
javaAgents += "org.aspectj" % "aspectjweaver" % aspectJVersion % "runtime"
libraryDependencies ++= Seq(
"com.github.pjfanning" %% "micrometer-akka" % "0.13.3",
"org.aspectj" % "aspectjweaver" % aspectJVersion % "runtime",
"io.micrometer" % "micrometer-registry-prometheus" % micrometerVersion,
"io.prometheus" % "simpleclient" % prometheusVersion,
"io.prometheus" % "simpleclient_common" % prometheusVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.3.5"
)
//uncomment this add-opens -- needed for Java 16 and above runtimes -- will cause issues if used with Java 8 runtime
//run / javaOptions ++= Seq("--add-opens", "java.base/java.lang=ALL-UNNAMED")