Reduce JPMS warnings (#909)

When deserializing some JSON-RPC requests jackson instantiates
OptionalLong in a way JPMS doesn't like.  Suppress that warning.

Fixes #798

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
pull/910/head
Danno Ferrin 5 years ago committed by GitHub
parent 167679e9fa
commit 4d1cf80d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      build.gradle

@ -462,14 +462,18 @@ apply plugin: 'application'
mainClassName = 'org.hyperledger.besu.Besu' mainClassName = 'org.hyperledger.besu.Besu'
applicationDefaultJvmArgs = [ applicationDefaultJvmArgs = [
'-Dvertx.disableFileCPResolving=true', '-Dvertx.disableFileCPResolving=true',
// BESU_HOME is replaced by a doFirst block in the run task.
'-Dbesu.home=BESU_HOME', '-Dbesu.home=BESU_HOME',
// We shutdown log4j ourselves, as otherwise this shutdown hook runs before our own and whatever // We shutdown log4j ourselves, as otherwise this shutdown hook runs before our own and whatever
// happens during shutdown is not logged. // happens during shutdown is not logged.
'-Dlog4j.shutdownHookEnabled=false', '-Dlog4j.shutdownHookEnabled=false',
// Suppress Java JPMS warnings. Document the reason for each suppression.
// Bouncy Castle needs access to sun.security.provider, which is not open by default. // Bouncy Castle needs access to sun.security.provider, which is not open by default.
// This suppresses an illegal access warning.
'--add-opens', '--add-opens',
'java.base/sun.security.provider=ALL-UNNAMED' 'java.base/sun.security.provider=ALL-UNNAMED',
// Jackson likes to access java.util.OptionalLong's constructor
'--add-opens',
'java.util/sun.security.provider=ALL-UNNAMED'
] ]
run { run {

Loading…
Cancel
Save