Skip to content

Configuration cache incompatibility #38

@jeremiahwinsley

Description

@jeremiahwinsley

Describe the bug (required)

Hi, ran into this when I tried to use it on a project.
It seems like this is intended to work, since the gradle plugin page is marked as compatible.

Build fails with this error:

Execution failed for task ':gitCommitIdGenerationTask' (registered by plugin 'io.github.git-commit-id.git-commit-id-gradle-plugin').
> Invocation of 'Task.project' by task ':gitCommitIdGenerationTask' at execution time is unsupported with the configuration cache.

Tell us about your plugin configuration (required)

gitCommitId {
    skip.set(false)
}

Tell us about the Plugin version used (required)

0.0.1

Tell us about the Gradle version used (required)

./gradlew --version

------------------------------------------------------------
Gradle 9.5.0
------------------------------------------------------------

Build time:    2026-04-28 12:05:30 UTC
Revision:      3fe117d68f3907790f3809f121aa36303a9151f8

Kotlin:        2.3.20
Groovy:        4.0.29
Ant:           Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM:  25.0.2 (Azul Systems, Inc. 25.0.2+10-LTS)
Daemon JVM:    C:\Program Files\Zulu\zulu-25 (no Daemon JVM specified, using current Java home)
OS:            Windows 11 10.0 amd64

Steps to Reproduce (required)

Add org.gradle.configuration-cache=true to gradle.properties to enable the configuration cache.

Run the plugin with ./gradlew clean build

Are there any stacktraces or any error messages? (required)

WARNING You may NOT want to paste all the output that is produced with verbose publicly,
since it MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

./gradlew --stacktrace

https://gist.github.com/jeremiahwinsley/c13ad2ebbd79661689322c90458e0363

Is there a (public) project where this issue can be reproduced? (optional)

https://github.com/jeremiahwinsley/git-commit-id-test

Your Environment (optional)

No response

Context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingto-triageto-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions