This message was deleted.
# community-support
s
This message was deleted.
d
However, I’m getting this
Copy code
hello ➤ ./gradlew hello                                                                                                                                                                       

> Configure project :
Finding dep: this should be overridden
Finding dep: this should be overridden

> Task :hello
hey, I did it
my goal is to be able to have an extension to be able to set some values that I can pass along to the build files in my project
c
trick is to avoid calling
project.rootProject.extra["message"] = extension.message.get()
- let the framework (Gradle internals) do that when needed, or do it yourself inside a task at execution time (as the latter
get()
call)
d
The issue is I have a task that is setting a bunch of properties in the configuration phase
c
that’s ok, so long as it avoid calling .get() on the extension - it can grab extension.message and use that to set other properties, flowing the lazy Property/Provider through.
Something like this, where privateRepositories is an extension property passed to a task
Copy code
withType<GoTask>().configureEach {
privateRepositories.set(extension.privateRepositories)
}
d
Okay I'll give that a try, thanks 🙏
c
👌
d
nice, it totally worked. i can just pass
extension.message.get()
to my task. thanks again!