This message was deleted.
# general
s
This message was deleted.
n
if you’re using the kotlin dsl, you can use
Copy code
val propName: String by settings
if this value can be null, use
String?
I believe in groovy, the propName should just automagically be available in the settings file
l
And if the property has
.
in its name, you can use:
settings.extra.get("test.prop")
in either DSL
t
Thanks for the input. I should have given some perspective before asking the question. My aim is to develop a new gradle plugin which will be applied in the settings script during initialization face of the gradle build cycle. For this, I would like to create a standalone project using Java/Groovy. Here in the standalone project source code, I wanted to access the gradle properties from the "settings" instance.
n
What Louis suggested should work from inside a settings plugin.
Copy code
settings.getExtensions().getExtraProperties()
t
This worked. Thanks for the input 👍