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
- Host: GitHub
- URL: https://github.com/alikhachev/build-service-parameters-evaluation-configuration-cache-repro
- Owner: ALikhachev
- Created: 2023-02-08T20:16:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T20:29:14.000Z (over 3 years ago)
- Last Synced: 2025-11-22T14:06:28.778Z (8 months ago)
- Language: Kotlin
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.