title: Dependency issues while using one gradle project in another
body: <p>I am new to Gradle, basically from Maven background.</p>
  <p>I have the following dependency in one project [Lets call it <strong>'Project A'</strong>]</p>
  <pre><code>implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
  </code></pre>
  <p>Now I want to use <strong>'Project A'</strong> in <strong>'Project B'</strong>. I have done the following to refer Project A in Project B.</p>
  <p>Updated the <code>settings.gradle</code> of <strong>Project B</strong> to include <strong>Project A</strong></p>
  <pre><code>include ':project-a' 
  project(':project-a').projectDir = new File('path to Project A')
  </code></pre>
  <p>Following is added to  <strong>Project B</strong> <code>build.gradle</code></p>
  <pre><code>implementation project(&quot;:project-a&quot;)
  </code></pre>
  <p>While synchronizing, <strong>Project B</strong> complains the following.</p>
  <blockquote>
  <p>Could not run phased build action using Gradle distribution
  'https://services.gradle.org/distributions/gradle-6.6.1-bin.zip'.
  Build file 'path to project A\build.gradle' line: 9 A problem occurred
  evaluating project ':project-a'. Could not find method
  implementation() for arguments [{group=org.apache.commons,
  name=commons-lang3, version=3.0}] on object of type
  org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</p>
  </blockquote>
  <p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>UPDATE</strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong>*
  Java plugin added as requested in comment</p>
  <pre><code>apply plugin: 'java'
  
  //plugins {
  //  id 'java'
  //}
  
  
  dependencies {
      
      implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
      implementation group: 'org.springframework',       name: 'spring-context',    version: &quot;${spring_version}&quot;
      implementation group: 'org.springframework.boot',  name: 'spring-boot-autoconfigure',    version: &quot;${springboot_version}&quot;
      implementation group: 'org.springframework.cloud', name: 'spring-cloud-context'
      implementation group: 'org.springframework.cloud', name: 'spring-cloud-commons'
  </code></pre>
  <p><strong>versions</strong> are declared in gradle.properties file</p>
  <pre><code>spring_version=5.2.5.RELEASE
  springboot_version=2.2.6.RELEASE
  servlet_version=3.1.0
  </code></pre>
  <p>Now none of the dependencies are getting downloaded.</p>