Suppress netty warnings and exceptions in debug mode (#926)

- Add appropriate module options in the manifest file in gradle build. 

Signed-off-by: Usman Saleem <usman@usmans.info>
pull/940/head
Usman Saleem 5 years ago committed by GitHub
parent 57b9e4f3f9
commit 0b507475f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      build.gradle

@ -473,7 +473,13 @@ applicationDefaultJvmArgs = [
'java.base/sun.security.provider=ALL-UNNAMED', 'java.base/sun.security.provider=ALL-UNNAMED',
// Jackson likes to access java.util.OptionalLong's constructor // Jackson likes to access java.util.OptionalLong's constructor
'--add-opens', '--add-opens',
'java.base/java.util=ALL-UNNAMED' 'java.base/java.util=ALL-UNNAMED',
// suppress netty specific module warnings in debug
"-Dio.netty.tryReflectionSetAccessible=true",
"--add-exports",
"java.base/jdk.internal.misc=ALL-UNNAMED",
"--add-opens",
"java.base/java.nio=ALL-UNNAMED"
] ]
run { run {

Loading…
Cancel
Save