title: Gradle: No such property for class?
body: <p>I am trying to compile an existing codebase using the newest version of <code>gradle</code>. The build fails due to the following line in the modules <code>build.gradle</code> file:</p>
  
  <pre><code>project.setProperty("doNow", true)
  </code></pre>
  
  <p>with this error:</p>
  
  <pre><code> No such property: doNow for class: org.gradle.api.internal.project.DefaultProject_Decorated
  </code></pre>
  
  <p>Do I need to declare this property within build.gradle before the line causing an error? </p>
  
  <p>From gradle docs for <code>setProperty</code>:</p>
  
  <blockquote>
    <p>Sets a property of this project. This method searches for a property
    with the given name in the following locations, and sets the property
    on the first location where it finds the property.</p>
  </blockquote>