From 0b507475f464f9035fe3d389ebf33927001b97a5 Mon Sep 17 00:00:00 2001 From: Usman Saleem Date: Mon, 18 May 2020 11:55:18 +1000 Subject: [PATCH] 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 --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f9339546cc..eefc71a70c 100644 --- a/build.gradle +++ b/build.gradle @@ -473,7 +473,13 @@ applicationDefaultJvmArgs = [ 'java.base/sun.security.provider=ALL-UNNAMED', // Jackson likes to access java.util.OptionalLong's constructor '--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 {