Closed twasyl closed 6 years ago
Hi Thierry,
This is most likely a problem with JRuby and Windows. At the moment I would say that it should work with JRuby 9.1.8.0 on Windows. I guess with Gradle you would have to specify the version by adding it to the asciidoctor configuration:
dependencies {
asciidoctor 'org.jruby:jruby-complete:9.1.8.0'
}
Can you try this?
Hello,
Thank you for the tip. I added the dependency to the gradle classpath like this but it still fails :
buildscript {
dependencies {
// ...
classpath 'org.jruby:jruby-complete:9.1.8.0'
}
}
Hi,
It just found what I was doing wrong. I excluded the jruby-complete
from the asciidoctorj-pdf
dependency and added the version 9.1.8.0
to the classpath and it is working properly:
buildscript {
dependencies {
classpath('org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16') {
exclude module: 'jruby-complete'
}
classpath 'org.jruby:jruby-complete:9.1.8.0'
}
}
Thanks
👍
Same issue was reported here. https://github.com/asciidoctor/asciidoctor-pdf/issues/850 I came to the came same conclusion. You must set the JRuby version.
Hello,
I've encountered an issue when trying to convert asciidoctor files to PDF on Windows in gradle project. As you can see in the SlideshowFX AppVeyor results, the
asciidoctor
task is failing.If I downgrade to version
alpha.15
then the task completes successfully.Running the command
gradlew clean build --info --stacktrace
using versionalpha.16
produces the following stack:The problem can be reproduced by running the same command on the
development
branch of SlideshowFX.Have you already encountered this issue ?
Many thanks.