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

Remove usage of soon to be deprecated Task.getProject #313

Open
abstratt opened this issue Oct 30, 2024 · 3 comments
Open

Remove usage of soon to be deprecated Task.getProject #313

abstratt opened this issue Oct 30, 2024 · 3 comments

Comments

@abstratt
Copy link

abstratt commented Oct 30, 2024

Please avoid using Task.project at execution time as in here:

https://github.com/gretty-gradle-plugin/gretty/blob/5b99776fe8f4f7c53cac6aef63950b9e5e345e6d/libs/gretty/src/main/groovy/org/akhikhl/gretty/StartBaseTask.groovy#L60C45-L60C52 (and further places in the task action)

as it is going to be deprecated in Gradle 8.12, and forbidden in a future Gradle release.

Please see gradle/gradle#30860

@boris-petrov
Copy link
Member

@abstratt is this a new deprecation? Isn't this the same as #288 or it's something new?

@abstratt
Copy link
Author

It is the same, or sort of. Before Gradle 8.12, you would only see that deprecation if enabling STABLE_CONFIGURATION_CACHE feature flag. From 8.12, users should see it regardless of that feature flag. Feel free to close as a duplicate, just beware it will be issued for all users, not only those enabling the feature flag.

@boris-petrov
Copy link
Member

Ah, I see. Thanks for pointing that out. In any case, PRs are welcome for all deprecations!

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

No branches or pull requests

2 participants