title: Could not get unknown property for task in Gradle?
body: <p>I have the following Gradle Task:</p>
  
  <pre><code>  task makeZipDependencies &lt;&lt; {
          allDeps = (configurations.runtime + configurations.archives.allArtifacts.files).findAll {
              !(it.name =~ /clover/)
          }                                                                              .unique()
          if ("myApp".equals(project.name)) {
              rootProject.childProjectsRecursive.each {
  
                  try {
                      databaseSqlFileDeps.put(it.name, it.configurations["mySQLFiles"].files)
                  } catch (UnknownConfigurationException e) {
  
                  }
              }
          }
  </code></pre>
  
  <p>This was not causing an error previously when I was running my project with java 7 and gradle 1.7. </p>
  
  <p>However, I have moved to Java 8 and gradle 3.4.1 and now I get this error:</p>
  
  <pre><code>Execution failed for task "makeZipDependencies", could not get unknown property:childProjectsRecursive for root Project myApp of type org.gradle.api.project" 
  </code></pre>
  
  <p>What changes do I need to make to my task to fix this?</p>