This message was deleted.
# community-support
s
This message was deleted.
a
I remember there was some improvement on this topic in 7.6 docs. So it seems these are possiblities:
Copy code
// Using the API, provides a lazy Provider<String>
println providers.gradleProperty('gradlePropertiesProp').get()

// Using Groovy dynamic names
println gradlePropertiesProp
println settings.gradlePropertiesProp

// Using Groovy dynamic array notation on `settings`
println settings['gradlePropertiesProp']
So if foo can be null I guess your best bet is using a provider or an array notation.
And using the Provider API is the most consistent option between Groovy and Kotlin DSL
p
Thank you!