Skip to content

Commit

Permalink
Merge pull request #1156 from abelsromero/issue-1155-remove-open-acce…
Browse files Browse the repository at this point in the history
…ss-warnings-from-cli

Add required '--add-opens' to cli script
  • Loading branch information
robertpanzer authored Apr 2, 2023
2 parents e472e42 + 9500ed8 commit 8705923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Improvement::
* Accept 'null' as valid input (same as empty string) for load and convert String methods (#1148) (@abelsromero)
* Set Java 11 as the minimal version (#1151) (@abelsromero)
* Create `asciidoctorj-cli` module to prevent unnecessary dependencies to asciidoctorj jar consumers (#1149)
* Add required `--add-opens` to cli launch script to remove Jdk warnings (#1155) (@abelsromero)

Bug Fixes::

Expand Down
2 changes: 2 additions & 0 deletions asciidoctorj-distribution/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ startScripts {
applicationName = rootProject.name
mainClass.set('org.asciidoctor.cli.jruby.AsciidoctorInvoker')
defaultJvmOpts = [
'--add-opens', 'java.base/sun.nio.ch=ALL-UNNAMED',
'--add-opens', 'java.base/java.io=ALL-UNNAMED',
'-client', '-Xmn128m', '-Xms256m', '-Xmx256m', '-Djava.awt.headless=true',
'-Xverify:none', '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1', '-XX:+DisableExplicitGC', '-Djruby.compile.mode=OFF'
]
Expand Down

0 comments on commit 8705923

Please sign in to comment.