@ -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 {