This message was deleted.
# configuration-cache
s
This message was deleted.
r
an easy way I mean. some service I'm not aware of?
a
AFAIK there's no better way than
providers.provider { rootProject.name }
- and you'll have to
@Inject
a
ProvidersFactory
instance if necessary
v
You don't necessarily need a provider, do you? The project name should be set in the settings script and not change thereafter. So you can just use the plain
String
you just cannot access
rootProject.name
at execution time. Access it at configuration time to set some property of the task for example and it should be fine I think.
👍 1
r
yeah thats what I do now. Still wondered if there is a more elegant way