Skip to content
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

@Console properties are stored in configuration cache while of course not touching key or fingerprint #16143

Open
Vampire opened this issue Feb 13, 2021 · 3 comments

Comments

@Vampire
Copy link
Contributor

Vampire commented Feb 13, 2021

Given a task with

@get:Console
abstract val verbose: Property<Boolean>

and

init {
    verbose.convention(project.gradle.startParameter.logLevel <= INFO)
}

If you use the configuration cache and run the task, it remembers the state.
So if you do gradlew -i myTask you get verbose output.
If you then change one of the inputs and do gradlew myTask the task is rerun and still outputs verbosely.

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Apr 17, 2022
@bamboo
Copy link
Member

bamboo commented Apr 18, 2022

This is still relevant.

@stale stale bot removed the stale label Apr 18, 2022
@bamboo bamboo added the in:configuration-cache Configuration Caching label Nov 25, 2022
@mlopatkin
Copy link
Member

FWIW, it's more about "StartParameter data read at configuration time should be CC inputs" or "Have lazy changing accessors to StartParameter data". I don't think @Console is particularly special with regard to CC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants