kotlin
kotlin copied to clipboard
Strictly parse gradle plugin boolean properties
At the moment gradle plugin boolean properties aren't strictly parsed, meaning that invalid values are interpreted as false.
Even true is silently ignored and interpreted as false.
Using toBooleanStrict instead of toBoolean will throw an IllegalArgumentException if the value isn't exactly true or false (just like an invalid enum property value would).