An open API service indexing awesome lists of open source software.

https://github.com/alikhachev/build-service-parameters-evaluation-configuration-cache-repro


https://github.com/alikhachev/build-service-parameters-evaluation-configuration-cache-repro

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

          

# Reproducer for a Gradle bug in evaluating build service parameters

Execute `./gradlew myTask1 --warning-mode=all`

It prints that `myTask1` uses `Project` at execution time.


Execute `./gradlew myTask2 --warning-mode=all`

`myTask2` also uses `Project` similarly at execution time, but no warning is printed.


Execute `./gradlew myTask1 --configuration-cache`

It fails to store a configuration cache entry reporting that
> invocation of 'Task.project' at execution time is unsupported.

However, it works fine on Gradle 8.0-rc-3


Execute `./gradlew myTask1 --configuration-cache --configuration-cache-problems=warn` twice

It prints a warning, but both runs run fine.