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

Various tasks use the stagingRepositoryUrlRegistry build service without having it declared #237

Open
Vampire opened this issue Jul 4, 2023 · 0 comments

Comments

@Vampire
Copy link
Contributor

Vampire commented Jul 4, 2023

This gives warnings when the STABLE_CONFIGURATION_CACHE feature is enabled and will be an error with Gradle 9.
For tasks like the maven publish tasks you enrich with it, you can use usesService.
For own task classes, you could instead use a @ServiceReference annotated property in newer Gradle versions to get it automatically injected and registered as being used, or you could also use the usersService call.

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

1 participant