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

Plugin is incompatible with Gradle 8.1.1 #673

Closed iwnek-s8 closed 7 months ago

iwnek-s8 commented 1 year ago

Line:

https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/master/jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AbstractAsciidoctorTask.groovy#L518

Stacktrace:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':asciidoctorPdf'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:149)
...
Caused by: java.lang.NoSuchMethodError: 'void org.gradle.workers.WorkerExecutor.submit(java.lang.Class, org.gradle.api.Action)'
        at org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask$_runWithWorkers_closure10.doCall(AbstractAsciidoctorTask.groovy:518)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Gradle migration guide message:

The deprecated submit(Class, Action) method of the WorkerExecutor interface has been removed. Instead, obtain a WorkQueue via the noIsolation(), classLoaderIsolation(), and processIsolation(), methods and use the submit(Class, Action) method on the WorkQueue instead.

https://docs.gradle.org/current/userguide/upgrading_version_7.html#workerexecutor_api_cleanup

ysb33r commented 1 year ago

This is being worked on

Goooler commented 1 year ago

Links #664.