jvmArgs = ["-javaagent:spring-instrument-3.2.3.RELEASE.jar -Dorg.aspectj.tracing.enabled=true -Daj.weaving.verbose=false -Dorg.aspectj.weaver.showWeaveInfo=false -DcontainerNamespace=atp2sxg -Dspring.profiles.active=PooledConDS"]
How do you specify java agent in gradle using jvmArgs?
ddimitrov
(Dimitar Dimitrov)
2
The cmd line args need to be properly split, like this:
jvmArgs = [
"-javaagent:spring-instrument-3.2.3.RELEASE.jar",
"-Dorg.aspectj.tracing.enabled=true",
"-Daj.weaving.verbose=false",
"-Dorg.aspectj.weaver.showWeaveInfo=false",
"-DcontainerNamespace=atp2sxg",
"-Dspring.profiles.active=PooledConDS"
]
Also, you may want to use systemProperties
instead of passing -Dxxxx=yyy
args.
How do I specify multiple java agent?
bmuschko
(Benjamin Muschko)
4
You can simply define multiple -javaagent
JVM arguments.