title: Gradle - Load properties from a .properties file
body: <p>I am getting this error while trying to add <code>db.properties</code> file in <code>build.gradle</code> file</p>
  
  <p>build.gradle:</p>
  
  <pre><code>allprojects {
  
      apply from: 'db.properties'
      apply from: 'deployment.properties'
  
      repositories {
          mavenCentral()
      }
  
      apply plugin: 'java'
      apply plugin: 'war'
      apply plugin: 'maven-publish'
      apply plugin: 'idea'
  
      sourceCompatibility = 1.8
  
  }
  </code></pre>
  
  <p>db.properties:</p>
  
  <pre><code>db=blal
  dbUsername=/bilal/home
  </code></pre>
  
  <p>Error I am getting is:</p>
  
  <pre><code>* Where:
  Script 'camelawsextractionservicesb/db.properties' line: 1
  
  * What went wrong:
  A problem occurred evaluating script.
  &gt; Could not find property 'blal' on root project 'CamelExtractionServices'.
  </code></pre>