title: Failed to apply plugin [id 'spring-boot']
body: <p>I am trying to use Spring boot in my gradle project. But when I try to <code>clean build</code>, it gives the following error (only relevant stacktrace):</p>
  
  <pre><code>Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'spring-boot']
  at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:117)
  at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:36)
  at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:80)
  at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:131)
  at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:37)
  at org.gradle.api.Project$apply.call(Unknown Source)
  at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.groovy:34)
  at org.gradle.api.Script$apply.callCurrent(Unknown Source)
  at build_2o7juvjo3110jmss6k1iqcfrir.run(/Users/AlmasBarday/bos-api/build.gradle:13)
  at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
  ... 57 more
  Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'spring-boot' not found.
  at org.gradle.api.internal.plugins.DefaultPluginRegistry.getTypeForId(DefaultPluginRegistry.java:91)
  at org.gradle.api.internal.plugins.DefaultPluginContainer.getTypeForId(DefaultPluginContainer.java:183)
  at org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultPluginContainer.java:103)
  at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyPlugin(DefaultObjectConfigurationAction.java:115)
  </code></pre>
  
  <p>My build.gradle has the following:</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'maven-publish'
  apply plugin: 'spring-boot'
  
  dependencies {
   compile 'org.slf4j:slf4j-api:1.7.5'
   compile 'net.sourceforge.jexcelapi:jxl:2.6.12'
   compile 'com.qas:proweb:1.0.0'
  
  compile "org.springframework:spring-beans:$springVersion"
  compile "org.springframework:spring-jdbc:$springVersion"
  compile "org.springframework:spring-web:$springVersion"
  
  compile "org.springframework.boot:spring-boot-starter-web:1.2.7.RELEASE"
  
  testCompile 'junit:junit:4.11'
  }
  </code></pre>
  
  <p>I searched the internet and tried solutions posted to similar problems, but nothing seems to work. Also, I am able to build another gradle-springboot project without any problems.</p>
  
  <p>Any help appreciated.</p>