title: IntelliJ gradle - unknown properties
body: <p>The error:</p>
  
  <blockquote>
    <p>Build file 'C:\Users\Me\Dev\project\app\build.gradle' line: 21</p>
    
    <ul>
    <li>What went wrong:
    A problem occurred evaluating root project 'app'.
    Could not get unknown property 'libraries' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</li>
    </ul>
  </blockquote>
  
  <p>inside app.gradle</p>
  
  <pre><code>dependencies{
      compile libraries.my_lib
      deploy libraries.my_lib
  }
  </code></pre>
  
  <p>inside project.gradle</p>
  
  <pre><code>ext.libraries = {
      my_lib:    'com.myCompany:my-lib:1.0.0'
  }
  </code></pre>
  
  <p>inside pom.xml</p>
  
  <pre><code>&lt;modules&gt;
      &lt;module&gt;my-lib&lt;/modules&gt;
  &lt;/modules&gt;
  </code></pre>
  
  <p>Pressing CTRL+Space in app.gradle's <code>libaries.</code> shows the my_lib library that may be autocompleted, but when compiling using <code>gradle clean deploy</code>, it fails and returns the message above.</p>
  
  <p>This only happened after I updated the IDE to the latest IntelliJ.</p>