This PR upgrades asciidoctor-diagram and asciidoctor-diagram-plantuml to the latest versions.
I made some observations while preparing this PR:
I also tried to upgrade Gradle to 8.8, but I experienced some errors from the jruby-gradle plugin, like this:
exception thrown for request to /rubygems/rexml/3.2.6/ivy.xml
java.lang.NoClassDefFoundError: Lorg/gradle/wrapper/ExclusiveFileAccessManager;
at java.base/java.lang.Class.getDeclaredFields0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3061)
at java.base/java.lang.Class.getDeclaredFields(Class.java:2248)
at org.codehaus.groovy.reflection.CachedClass$1.lambda$initValue$2(CachedClass.java:59)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.CachedClass$1.initValue(CachedClass.java:62)
at org.codehaus.groovy.reflection.CachedClass$1.initValue(CachedClass.java:54)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:50)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:37)
at org.codehaus.groovy.reflection.CachedClass.getFields(CachedClass.java:256)
at groovy.lang.MetaClassImpl.addFields(MetaClassImpl.java:2488)
at groovy.lang.MetaClassImpl.inheritFields(MetaClassImpl.java:2483)
at groovy.lang.MetaClassImpl.setupProperties(MetaClassImpl.java:2369)
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3409)
at groovy.lang.MetaClassImpl.reinitialize(MetaClassImpl.java:3383)
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3376)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:273)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:315)
at org.ysb33r.grolifant.api.ExclusiveFileAccess.$getStaticMetaClass(ExclusiveFileAccess.groovy)
at org.ysb33r.grolifant.api.ExclusiveFileAccess.<init>(ExclusiveFileAccess.groovy)
at com.github.jrubygradle.internal.core.AbstractIvyXmlProxyServer.createIvyXml(AbstractIvyXmlProxyServer.groovy:116)
at com.github.jrubygradle.internal.core.AbstractIvyXmlProxyServer.getIvyXml(AbstractIvyXmlProxyServer.groovy:155)
at com.github.jrubygradle.internal.core.IvyXmlRatpackProxyServer.lambda$null$0(IvyXmlRatpackProxyServer.java:76)
I also had to pin rexml to version 3.2.6 instead of using 3.3.0, like it was done for asciidoctor-pdf, otherwise it would complain at runtime about a version mismatch.
asciidoctor-diagram-batik could not be resolved transitively, therefore I had to add a direct dependency. I saw this error locally. I cannot tell where this problem is rooted, but adding a direct dependency solved it for me:
* What went wrong:
Execution failed for task ':asciidoctorj-diagram-plantuml:jrubyPrepare'.
> Could not resolve all files for configuration ':asciidoctorj-diagram-plantuml:gems'.
> Could not find any version that matches rubygems:asciidoctor-diagram-batik:[1.17.0,2.0[.
Versions that do not match: 1.17
Searched in the following locations:
- https://repo.maven.apache.org/maven2/rubygems/asciidoctor-diagram-batik/maven-metadata.xml
- http://localhost:56135/rubygems/asciidoctor-diagram-batik/
Required by:
project :asciidoctorj-diagram-plantuml > rubygems:asciidoctor-diagram-plantuml:1.2024.5
This PR upgrades asciidoctor-diagram and asciidoctor-diagram-plantuml to the latest versions.
I made some observations while preparing this PR: