Add JVM options to prevent warnings with asciidoctor

See gh-32123
pull/32501/head
Dave Syer 2 years ago committed by Phillip Webb
parent 50c099334b
commit 7b4db4cafc

@ -222,12 +222,18 @@ asciidoctor {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task zip(type: Zip) { task zip(type: Zip) {

@ -332,18 +332,27 @@ asciidoctor {
sources { sources {
include "*.singleadoc" include "*.singleadoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "*.singleadoc" include "*.singleadoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorMultipage(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "*.adoc" include "*.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
syncDocumentationSourceForAsciidoctor { syncDocumentationSourceForAsciidoctor {

@ -79,12 +79,18 @@ asciidoctor {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
javadoc { javadoc {

@ -94,12 +94,18 @@ asciidoctor {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) { task asciidoctorPdf(type: org.asciidoctor.gradle.jvm.AsciidoctorTask) {
sources { sources {
include "index.adoc" include "index.adoc"
} }
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
} }
syncDocumentationSourceForAsciidoctorPdf { syncDocumentationSourceForAsciidoctorPdf {

Loading…
Cancel
Save