I can read from gradle.properties
with val myProperty by settings
, and that's nice! But what if the property name contains dots? Consider the next gradle.properties
file:
kotlin.incremental=true
kotlin.incremental.js=true
kotlin.incremental.multiplatform=true
How can I read those properties above in a settings.gradle.kts
script?
Here is what I found:
val myProperty: Boolean
get() = settings.extra["kotlin.incremental"]?.toString()?.toBoolean() ?: false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With