title: gradle error Could not find method dependencyManagement()
body: <p>Below is my build.gradle </p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '2.0.0.M3'
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  
  
  apply plugin: 'org.springframework.boot'
  apply plugin: 'maven-publish'
  
  dependencyManagement {
      imports {
          mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:Brixton.SR7'
      }
  }
  
  dependencies {
  
  
      compile("org.springframework.cloud:spring-cloud-starter-eureka")
      compile "org.elasticsearch:elasticsearch:5.5.0"
  
      testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  </code></pre>
  
  <p>I was using gradle 2.14 and got the below error</p>
  
  <pre><code>&gt; Failed to apply plugin [id 'org.springframework.boot']
     &gt; Spring Boot plugin requires Gradle 3.4 or later. The current version is Gra
  dle 2.14
  </code></pre>
  
  <p>Then I upgraded gradle to 3.4 as suggested in the error message.</p>
  
  <p>Now I get the below error</p>
  
  <blockquote>
    <p>Could not find method dependencyManagement() for arguments [build_79bcact4bkf1
    sckkod1j3zl7l$_run_closure1@4a2d71c9] on root project 'myproject'
    of type org.gradle.api.Project.</p>
  </blockquote>
  
  <p>Is the method <code>dependencyManagement()</code> no longer available in gradle 3.4 ? 
  If anybody is aware of the alternate method to be used in gradle 3.4 , kindly revert</p>