asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
285 stars 120 forks source link

uri:classloader:/gems/prawn-icon-3.0.0/lib/prawn/icon/font_data.rb:9: warning: The Psych YAML extension failed to load #737

Open opolo-dao opened 2 weeks ago

opolo-dao commented 2 weeks ago

I use following config of plugins id "org.asciidoctor.jvm.base" version "4.0.3" id 'org.asciidoctor.jvm.convert' version '4.0.3' id 'org.asciidoctor.jvm.pdf' version "4.0.3" id 'org.asciidoctor.jvm.gems' version '4.0.3'

After i updated to this version i can't build pdf due Psych YAML error. Execution failed for task ':asciidoctorPdf'.

A failure occurred while executing org.ysb33r.grolifant.internal.v6.jvm.worker.InternalWorkerAppExecutor org.asciidoctor.gradle.remote.AsciidoctorRemoteExecutionException: ERROR: Running Asciidoctor whilst attempting to process [masked]\ApiDescription.adoc using backend pdf

Task configuration: asciidoctorPdf { doNotTrackState("Need to run on local machine") sourceDir file('documentation') baseDirFollowsSourceFile() sources { include 'internal/*.adoc', 'external/*.adoc' } outputDir file("$buildDir/docs") resources { from('documentation/**') { include '**.png', '**.jpg' } } }

opolo-dao commented 2 weeks ago

I have found the issue. Running asciidoctorGemsPrepare return more detailed error oadError: bad SnakeYAML version 2.2, required 1.21 or higher; check your CLASSPATH for a conflicting jar load_ext at org/jruby/ext/jruby/JRubyUtilLibrary.java:216 Other plugin depends on SnakeYAML version 2.2. What to do to to fix it?