This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new fb87f07706 Fixed: sets org.asciidoctor.jvm plugins to version "4.0.5"
fb87f07706 is described below
commit fb87f07706e7f591adeb4a98a45653fa27b710f1
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri May 15 12:16:52 2026 +0200
Fixed: sets org.asciidoctor.jvm plugins to version "4.0.5"
I tested on Linux but committed from Windows where I forgot to uncomment in
AsciidoctorTask in order for PDF files to be generated.
---
build.gradle | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/build.gradle b/build.gradle
index 3339536ab2..adc2036203 100644
--- a/build.gradle
+++ b/build.gradle
@@ -550,20 +550,20 @@ tasks.withType(AsciidoctorTask) { task ->
jvm {
jvmArgs("--add-opens","java.base/sun.nio.ch=ALL-UNNAMED","--add-opens","java.base/java.io=ALL-UNNAMED")
}
-// outputOptions {
-// // I hate we have to do this - but JRuby (asciidoctorj-pdf) and
Windows don't mix well
-// if (System.properties['os.name'].toLowerCase().contains('windows')) {
-// backends = ['html5']
-// } else {
-// backends = ['html5', 'pdf']
-// }
+ outputOptions {
+ // I hate we have to do this - but JRuby (asciidoctorj-pdf) and
Windows don't mix well
+ if (System.properties['os.name'].toLowerCase().contains('windows')) {
+ backends = ['html5']
+ } else {
+ backends = ['html5', 'pdf']
+ }
//It seems we have no choice when using Builbot we now get this issue:
// Caused by: org.jruby.exceptions.LoadError: (LoadError) no such file
to load -- asciidoctor-pdf
// at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)
// at
RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)
// at RUBY.<main>(<script>:1)
// backends = ['html5'] // this is the default, so for now
outputOptions is not needed
-// }
+ }
attributes \
'doctype': 'book',
'revnumber': getCurrentGitBranch(),