Skip to content

Commit

Permalink
[TEMP] Add jmx for Kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
peel committed Mar 15, 2024
1 parent 23692eb commit 2bff968
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import com.typesafe.sbt.packager.Keys.packageName
import com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport._
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport._
import org.scalafmt.sbt.ScalafmtPlugin.autoImport._
import sbt.Keys._
Expand Down Expand Up @@ -86,6 +87,15 @@ object BuildSettings {
commonSinkSettings ++ integrationTestSettings ++ Seq(
moduleName := "snowplow-stream-collector-kafka",
Docker / packageName := "scala-stream-collector-kafka",
Universal / javaOptions ++= Seq(
"-Djavax.management.builder.initial=",
"-Djava.rmi.server.hostname=127.0.0.1",
"-Dcom.sun.management.jmxremote=true",
"-Dcom.sun.management.jmxremote.port=9186",
"-Dcom.sun.management.jmxremote.rmi.port=9186",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Dcom.sun.management.jmxremote.authenticate=false"
),
libraryDependencies ++= Seq(
Dependencies.Libraries.kafkaClients,
Dependencies.Libraries.mskAuth,
Expand Down

0 comments on commit 2bff968

Please sign in to comment.