Use headless jdk on all platforms
MODIFY
asciidoctorj-distribution/build.gradle
asciidoctorj-distribution/build.gradle
@@ -68,7 +68,7 @@ startScripts {
applicationName = rootProject.name
mainClassName = 'org.asciidoctor.jruby.cli.AsciidoctorInvoker'
defaultJvmOpts = [
- '-client', '-Xmn128m', '-Xms256m', '-Xmx256m',
+ '-client', '-Xmn128m', '-Xms256m', '-Xmx256m', '-Djava.awt.headless=true',
'-Xverify:none', '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1', '-XX:+DisableExplicitGC', '-Djruby.compile.mode=OFF'
]
}

MODIFY
asciidoctorj-distribution/src/main/resources/customUnixStartScript.txt
asciidoctorj-distribution/src/main/resources/customUnixStartScript.txt
@@ -110,7 +110,7 @@ fi
# For Darwin, add options to specify how the application appears in the dock
if \$darwin; then
- JAVA_OPTS="\$JAVA_OPTS -Djava.awt.headless=true"
+ GRADLE_OPTS="\$GRADLE_OPTS \\"-Xdock:name=\$APP_NAME\\" \\"-Xdock:icon=\$APP_HOME/media/gradle.icns\\""
fi
# For Cygwin, switch paths to Windows format before running java

Use headless jdk on all platforms