Add jdk.management.agent module on dev builds (#5115)

This commit is contained in:
Chris Stewart 2023-06-26 10:56:49 -05:00 committed by GitHub
parent 2023e3cfb7
commit dd77eb0566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,9 +95,17 @@ object CommonSettings {
}
)
lazy val jlinkModules = Seq(
"jdk.crypto.ec"
)
lazy val jlinkModules = {
val base = Seq(
"jdk.crypto.ec"
)
val dev = {
//needed for visualvm to profile/debug apps
Vector("jdk.management.agent")
}
if (!isCI) base ++ dev
else base
}
//these are java modules we do not need
//our artifacts do not use java.desktop