Skip to content

Support configuration cache #35

@JordanLongstaff

Description

@JordanLongstaff

I tried adding this plugin to my repo and running the grabverRelease task, and got this output:

Execution failed for task ':app:grabverRelease'.
> Invocation of 'Task.project' by task ':app:grabverRelease' at execution time is unsupported with the configuration cache.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
Ask Gemini

Furthermore, Gradle reported cache problems:

Configuration cache problems found in this build.

3 problems were found storing the configuration cache.
- Plugin 'eu.davidea.grabver': registration of listener on 'Gradle.buildFinished' is unsupported
  See https://docs.gradle.org/9.1.0/userguide/configuration_cache_requirements.html#config_cache:requirements:build_listeners
- Plugin 'eu.davidea.grabver': registration of listener on 'TaskExecutionGraph.afterTask' is unsupported
  See https://docs.gradle.org/9.1.0/userguide/configuration_cache_requirements.html#config_cache:requirements:build_listeners
- Task `:app:grabverRelease` of type `org.gradle.api.DefaultTask`: invocation of 'Task.project' at execution time is unsupported with the configuration cache.
  See https://docs.gradle.org/9.1.0/userguide/configuration_cache_requirements.html#config_cache:requirements:use_project_during_execution

Configuration cache has been a stable feature of Gradle since 8.1. Please add support for it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions