Override system properties set in gradle.properties from command line

Hi !

I am trying to find a way to override system properties set in gradle.properties through command line . I have tried overriding the property using -D and -P options but still no luck . Is this expected behavior ?or am I missing something ? I know there was a defect open for this long back which got fixed as per this post Can't override SystemProperty defined in gradle.properties from command line .

Thanks,
Aditya