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

ResourceHandler and / or TextResourceFactory as injectable services #16134

Open
Vampire opened this issue Feb 12, 2021 · 4 comments
Open

ResourceHandler and / or TextResourceFactory as injectable services #16134

Vampire opened this issue Feb 12, 2021 · 4 comments
Labels

Comments

@Vampire
Copy link
Contributor

Vampire commented Feb 12, 2021

The subject says it all, would be nice if you could inject ResourceHandler or both and use them in a task or plugin.

@ljacomet
Copy link
Member

@gradle/configuration-cache Could you take a look? These are currently available on Project but that would mean they cannot be used always.
It looks like the internal FileOperations service offers them though. Maybe it needs a public counterpart?

@bamboo bamboo added this to the 7.5 RC1 milestone Dec 14, 2021
@bamboo bamboo self-assigned this Dec 14, 2021
@bamboo bamboo removed their assignment Apr 18, 2022
@bamboo bamboo removed this from the 7.5 RC1 milestone Apr 18, 2022
@mlopatkin mlopatkin removed the in:build-services Shared Build Services label Aug 1, 2023
@ov7a ov7a added 👋 team-triage Issues that need to be triaged by a specific team and removed 👋 team-triage Issues that need to be triaged by a specific team labels Nov 23, 2023
@Omico
Copy link

Omico commented Feb 6, 2024

Any updates? I hope I can use it directly on Settings.

For now I use the below code as a workaround.

val fileOperations = serviceOf<FileOperations>()
fileOperations.resources

@mlopatkin
Copy link
Member

This feature request is in the backlog of the relevant team and is prioritized by them.


We're uncertain about the future of the TextResource in general after migrating to the Provider API, see also #25973.

@Omico
Copy link

Omico commented Apr 2, 2024

This feature request is in the backlog of the relevant team and is prioritized by them.

We're uncertain about the future of the TextResource in general after migrating to the Provider API, see also #25973.

Hi @mlopatkin, please also consider #25237. We want to make ResourceHandler a public API because we want a more convenient way to download files. Also, it would be best if it could support configuration cache!

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

No branches or pull requests

7 participants