Skip to content

Commit fb87f07

Browse files
committed
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.
1 parent 0a0907c commit fb87f07

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -550,20 +550,20 @@ tasks.withType(AsciidoctorTask) { task ->
550550
jvm {
551551
jvmArgs("--add-opens","java.base/sun.nio.ch=ALL-UNNAMED","--add-opens","java.base/java.io=ALL-UNNAMED")
552552
}
553-
// outputOptions {
554-
// // I hate we have to do this - but JRuby (asciidoctorj-pdf) and Windows don't mix well
555-
// if (System.properties['os.name'].toLowerCase().contains('windows')) {
556-
// backends = ['html5']
557-
// } else {
558-
// backends = ['html5', 'pdf']
559-
// }
553+
outputOptions {
554+
// I hate we have to do this - but JRuby (asciidoctorj-pdf) and Windows don't mix well
555+
if (System.properties['os.name'].toLowerCase().contains('windows')) {
556+
backends = ['html5']
557+
} else {
558+
backends = ['html5', 'pdf']
559+
}
560560
//It seems we have no choice when using Builbot we now get this issue:
561561
// Caused by: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- asciidoctor-pdf
562562
// at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1017)
563563
// at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)
564564
// at RUBY.<main>(<script>:1)
565565
// backends = ['html5'] // this is the default, so for now outputOptions is not needed
566-
// }
566+
}
567567
attributes \
568568
'doctype': 'book',
569569
'revnumber': getCurrentGitBranch(),

0 commit comments

Comments
 (0)