title: Gradle override version property
body: <p>Is there a possibility to override build script property? I'm trying to build jar archive of my project and I want to specify 'version' via command line. </p>
  
  <p>When I have 'version' property defined in my build.gradle (or gradle.properties), properties provided via commandline using -D/-P are not applied. Final jar is always built with version specified in build.gradle (or gradle.properties) and command line version property is ignored. </p>
  
  <p>Thanks</p>