sbt-javaagent
sbt-javaagent copied to clipboard
sbt plugin for adding java agents to projects
## Problem description The plugin doesn't add agent when user overrides `libraryDependencies` with `:=` as opposed to appending them. For example when project is defined like this: ```scala lazy val...
Any particular reason that the agent JARs are not in the lib directory along with all the other dependencies? Instead of: ``` addJava "-javaagent:${app_home}/../kanela-agent/kanela-agent-1.0.9.jar" ``` it could be: ``` addJava...
It's not clear from the README, but when using a Scala dependency, the author must be sure to append the Scala version explicitly, e.g. ``` javaAgents += "com.example" % "somelibrary_2.12"...
Currently supported scopes are ``` val configuredScope = AgentScope(compile = inCompile, test = inTest, run = inRun, dist = inDist) ``` it does not include multi-jvm scope.
Right now it seems to be possible to use sbt-javaagent with [sbt-revolver](https://github.com/spray/sbt-revolver) like this (by stealing [`agentOptions`](https://github.com/sbt/sbt-javaagent/blob/v0.1.4/src/main/scala/com/lightbend/sbt/javaagent/JavaAgent.scala#L83): ```scala javaOptions in reStart ++= resolvedJavaAgents.value map { resolved => "-javaagent:" + resolved.artifact.absolutePath...