Browse Source

Add JVM options to prevent warnings with asciidoctor

See gh-32123
pull/32501/head
Dave Syer 3 years ago committed by Phillip Webb
parent
commit
7b4db4cafc
  1. 6
      spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle
  2. 9
      spring-boot-project/spring-boot-docs/build.gradle
  3. 6
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle
  4. 6
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle

6
spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

@ -222,12 +222,18 @@ asciidoctor { @@ -222,12 +222,18 @@ asciidoctor {
sources {
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) {
sources {
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) {

9
spring-boot-project/spring-boot-docs/build.gradle

@ -332,18 +332,27 @@ asciidoctor { @@ -332,18 +332,27 @@ asciidoctor {
sources {
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) {
sources {
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) {
sources {
include "*.adoc"
}
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
}
syncDocumentationSourceForAsciidoctor {

6
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle

@ -79,12 +79,18 @@ asciidoctor { @@ -79,12 +79,18 @@ asciidoctor {
sources {
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) {
sources {
include "index.adoc"
}
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
}
javadoc {

6
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/build.gradle

@ -94,12 +94,18 @@ asciidoctor { @@ -94,12 +94,18 @@ asciidoctor {
sources {
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) {
sources {
include "index.adoc"
}
forkOptions {
jvmArgs "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"
}
}
syncDocumentationSourceForAsciidoctorPdf {

Loading…
Cancel
Save