title: The ProjectLayout.directoryProperty() method has been deprecated
body: <p>After update to gradle <strong>5.2.1</strong></p>
  
  <blockquote>
    <p>Deprecated Gradle features were used in this build, making it
    incompatible with Gradle 6.0.</p>
  </blockquote>
  
  <p>So I run <code>./gradlew :app:clean --warning-mode all</code></p>
  
  <p>I have warnings in console:</p>
  
  <blockquote>
    <p>The ProjectLayout.directoryProperty() method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory.directoryProperty() method instead.</p>
    
    <p>The ProjectLayout.fileProperty() method has been deprecated. This is
    scheduled to be removed in Gradle 6.0. Please use the
    ObjectFactory.fileProperty() method instead.</p>
  </blockquote>
  
  <p>Even if its a newly created <strong>empty Android project without libraries</strong>.
  Also searching for <code>ProjectLayout</code> doesnt give any result.</p>
  
  <p><strong>P.S</strong> I already know that its warning, not error. But I just need to know whats wrong with gradle again.</p>