gradlex-org / build-parameters

Compile-safe access to parameters supplied to a Gradle build
https://gradlex.org/build-parameters
Apache License 2.0
101 stars 5 forks source link

Problems with configuration caching caused by build-parameters plugin are fixed #57

Open britter opened 1 year ago

britter commented 1 year ago

When building this project I frequently see the following log message:

❯ ./gradlew check
Configuration cache is an incubating feature.
Calculating task graph as configuration cache cannot be reused because an input to task ':plugins:build-parameters:jar' has changed.

What this means is that due to the application of the released build-parameters plugin to this project, the configuration cache can not be reused sometimes. It looks like the plugin we're building produces unstable outputs. Me first guess is that we're using collections that produce unstable outputs somewhere, e.g a HashMap.

jjohannes commented 1 year ago

My first guess is that we're using collections that produce unstable outputs somewhere, e.g a HashMap.

... 🤔 But the code should not be regenerated. It should be UP-TO-DATE. Or do you also see the generation task running again even though you haven't changed anything in the parameter definition?