diff --git a/framework-docs/framework-docs.gradle b/framework-docs/framework-docs.gradle index 7c14e7817d..3688da199e 100644 --- a/framework-docs/framework-docs.gradle +++ b/framework-docs/framework-docs.gradle @@ -113,16 +113,19 @@ asciidoctor { sources { include '*.adoc' } - outputDir "$buildDir/docs/ref-docs/html5" - outputOptions { - backends "spring-html" - } - logDocuments = true resources { from(sourceDir) { include 'images/*.png' } } + outputDir "$buildDir/docs/ref-docs/html5" + outputOptions { + backends "spring-html" + } + forkOptions { + jvmArgs += ["--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.base/java.io=ALL-UNNAMED"] + } + logDocuments = true } asciidoctor.mustRunAfter "check" @@ -246,7 +249,6 @@ task distZip(type: Zip, dependsOn: [docsZip, schemaZip]) { distZip.mustRunAfter moduleProjects.check - publishing { publications { mavenJava(MavenPublication) { @@ -255,4 +257,4 @@ publishing { artifact distZip } } -} \ No newline at end of file +}