Set -Djdk.module.illegalAccess=deny

Backport #4600 into this PR.

Set `-Djdk.module.illegalAccess=deny` in order to reduce warning in startup logs.
This commit is contained in:
cd2357 2020-10-06 11:41:36 +02:00 committed by GitHub
parent e409b496ed
commit 0b40dff95d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,6 +230,7 @@ task packageInstallers {
" --java-options -Xss1280k" + " --java-options -Xss1280k" +
" --java-options -XX:MaxRAM=4g" + " --java-options -XX:MaxRAM=4g" +
" --java-options -Djava.net.preferIPv4Stack=true" + " --java-options -Djava.net.preferIPv4Stack=true" +
" --java-options -Djdk.module.illegalAccess=deny" +
// Options for creating the application package // Options for creating the application package
" --license-file \"${licenseFilePath}\"" + " --license-file \"${licenseFilePath}\"" +
" --runtime-image \"${jdkForAppRuntimePath}\"" " --runtime-image \"${jdkForAppRuntimePath}\""