title: How can I transform a .properties file during a Gradle build?
body: <p>As part of a deploy task in Gradle, I want to change the value of a property in <code>foo.properties</code> to point to a production database instead of a development database.</p>
  
  <p>I'd rather not replace the whole file outright, as it's rather large and it means we would have to maintain two separate versions that only differ on a single line.</p>
  
  <p>What is the best way to accomplish this?</p>