Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running asciidoctor broken with gradle 5.5 #424

Closed
upeuker opened this issue Jul 3, 2019 · 5 comments
Closed

Running asciidoctor broken with gradle 5.5 #424

upeuker opened this issue Jul 3, 2019 · 5 comments
Labels
2.x Issue related to the 2.x series 3.x Issues related to the 3.x bug
Milestone

Comments

@upeuker
Copy link

upeuker commented Jul 3, 2019

Using the gradle plugins in version 2.2.0, the asciidoctor and asciidoctorPdf - tasks fail running the build using gradle 5.5, no problem with gradle 5.4.1.

Here ist the failure stack:

Exception in thread "main" java.lang.ClassNotFoundException: com.google.common.collect.ImmutableSet$SerializedForm
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:686)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2042)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
        at java.util.ArrayList.readObject(ArrayList.java:797)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1170)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2178)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
        at org.asciidoctor.gradle.remote.AsciidoctorJavaExec$_main_closure1$_closure7.doCall(AsciidoctorJavaExec.groovy:43)
        at org.asciidoctor.gradle.remote.AsciidoctorJavaExec$_main_closure1$_closure7.call(AsciidoctorJavaExec.groovy)
        at org.codehaus.groovy.runtime.IOGroovyMethods.withCloseable(IOGroovyMethods.java:1614)
        at org.asciidoctor.gradle.remote.AsciidoctorJavaExec$_main_closure1.doCall(AsciidoctorJavaExec.groovy:42)
        at org.asciidoctor.gradle.remote.AsciidoctorJavaExec$_main_closure1.call(AsciidoctorJavaExec.groovy)
        at org.codehaus.groovy.runtime.IOGroovyMethods.withStream(IOGroovyMethods.java:1191)
        at org.codehaus.groovy.runtime.ResourceGroovyMethods.withInputStream(ResourceGroovyMethods.java:1878)
        at org.asciidoctor.gradle.remote.AsciidoctorJavaExec.main(AsciidoctorJavaExec.groovy:41)
@ysb33r
Copy link
Member

ysb33r commented Jul 3, 2019

Thank you for raising this. I have not had a chance to test against 5.5. yet, so will add it to compatibility tests.

@ysb33r
Copy link
Member

ysb33r commented Jul 3, 2019

Found the issue. Rolling up a fix that will be in 2.3.0.

ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
@ysb33r ysb33r added this to the 2.3.0 milestone Jul 3, 2019
@ysb33r ysb33r added 2.x Issue related to the 2.x series 3.x Issues related to the 3.x bug labels Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
ysb33r added a commit that referenced this issue Jul 3, 2019
Use different version of guava for Gradle 5.5+ (#424)
ysb33r added a commit that referenced this issue Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
@ysb33r ysb33r mentioned this issue Jul 3, 2019
@ysb33r
Copy link
Member

ysb33r commented Jul 3, 2019

Merged. Will be in 2.3.0 & 3.0.0.alpha-4 releases.

@ysb33r ysb33r closed this as completed Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 4, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 4, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 4, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 4, 2019
ysb33r added a commit that referenced this issue Jul 4, 2019
Be smarter about locating internal Guava JAR (#424)
@jgoldhammer
Copy link

Any chance to backport this to 3.0.0-alpha.3 and release a new version with this fix?

@madmas
Copy link
Contributor

madmas commented Nov 14, 2019

Workaround: stick with an earlier gradle version until alpha.4 is release (gradle 4.8 worked for me).

ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 18, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 18, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 19, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue related to the 2.x series 3.x Issues related to the 3.x bug
Projects
None yet
Development

No branches or pull requests

4 participants