title: How to pull key-value pairs from a txt file using gradle
body: <p>Lets say I have a bunch of key-value pairs in a txt file and I want to use gradle to pull them into variables I can use. How would I go about doing that?</p>
  
  <p>What Im trying to do is not hardcode my storepass and other related signing info in my build.gradle files and keep them out of hosted source control.</p>
  
  <p>What I want to do is something like</p>
  
  <pre><code>propertiesFile file(/buildProperties.txt)
  
  storeFile file(propertiesFile.getProperty("myStoreFile"))
  storePassword propertiesFile.getProperty("myStorePassword")
  keyAlias propertiesFile.getProperty("myKeyAlias")
  keyPassword propertiesFile.getProperty("myKeyPassword")
  </code></pre>
  
  <p>I know this is something simple and can be done but an hour of googling has produced no solution yet.</p>