New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide access to Gradle.StartParameter property value in a configuration cache compliant way #19474
Comments
Besides that there are a few unnecessary explicit types or casts, what is not configuration cache friendly with your code? |
@Vampire There's a problem that with configuration cache the value of property from start parameters is cached instead of providing the actual value. For example, we have the use-case when we access |
What has that to do with the topic here? |
Yep, you're right. Previously (before Gradle 7.4) the topic was about pretty the same problem. |
Sorry for the late reply. Thank you for your interest in Gradle! This feature request is in the backlog of the relevant team, but this area of Gradle is currently not in focus. It might take a while before it gets implemented. |
The following provider does not support the configuration cache.
Is there a way to access a gradle property defined as a
StartParameter
(-PsomeProperty=..
) that is config cache friendly? Unfortunately,providers.gradleProperty(..)
does not work for me here as I need to differentiate between a gradle property passed as a start parameter and one passed in agradle.properties
file.Use case is https://gist.github.com/ZakTaccardi/a4e1b62b31a7e1069c309a2a169b1058 - which is an attempted workaround to:
The text was updated successfully, but these errors were encountered: