We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd99d16 commit cd0b152Copy full SHA for cd0b152
buildSrc/src/main/kotlin/datadog/gradle/plugin/muzzle/tasks/MuzzleTask.kt
@@ -98,6 +98,10 @@ abstract class MuzzleTask @Inject constructor(
98
// See https://github.com/gradle/gradle/issues/33987
99
workerExecutor.processIsolation {
100
forkOptions {
101
+ // datadog.trace.agent.tooling.muzzle.MuzzleVersionScanPlugin needs reflective access to ClassLoader.findLoadedClass
102
+ if(javaLauncher.metadata.languageVersion > JavaLanguageVersion.of(9)) {
103
+ jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
104
+ }
105
executable(javaLauncher.executablePath)
106
}
107
0 commit comments