kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

Strictly parse gradle plugin boolean properties

Open rickclephas opened this issue 3 years ago • 0 comments

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).

rickclephas avatar Jun 17 '22 21:06 rickclephas