https://gradle.com/ logo
#community-support
Title
# community-support
e

Eli Graber

09/23/2022, 1:49 AM
Is it possible to access properties in a settings.gradle.kts file? e.g. if I want to read a command line property?
e

ephemient

09/23/2022, 5:39 AM
not that different between a settings script and a build script
e

Eli Graber

09/23/2022, 5:40 AM
In a build script I use
findProperty
but that doesn't seem to be available in settings.
e

ephemient

09/23/2022, 7:01 AM
Settings
has
providers
just like
Project
does, and also the Kotlin property delegates work too
e

Eli Graber

09/23/2022, 7:50 AM
Oh interesting I'll try that out
v

Vampire

09/23/2022, 11:03 AM
findProperty
is indeed exclusive to
Project
but everything else like
hasProperty
,
getProperty
, delegates, and so on should work fine.
4 Views