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

Support the Gradle Configuration Cache #677

Closed ianbrandt closed 1 year ago

ianbrandt commented 1 year ago

The 3.3.2 AsciidoctorTask fails with my project if the Gradle configuration cache is enabled:

Task `:myproject:asciidoctor` of type `org.asciidoctor.gradle.jvm.AsciidoctorTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.1.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See also gradle/gradle#13490.

ianbrandt commented 1 year ago

I missed #564 in my initial search because it's closed. If it were reopened, I'd think this could be closed as a duplicate.

ianbrandt commented 1 year ago

Sorry for the duplicate, and thanks for re-opening #564.