title: org.springframework.boot Configuration with name 'runtime' not found
body: <p>When trying to run my program using gradle bootRun, the error shows that</p>
  <p>Failed to apply plugin 'org.springframework.boot'
  Configuration with name 'runtime' not found</p>
  <p>The following is my <code>build.gradle</code></p>
  <pre><code> buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE&quot;)
      }
  }
  
  apply plugin: 'war'
  apply plugin: 'java'
  apply plugin: 'idea'
  apply plugin: 'org.springframework.boot'
  apply plugin: 'application'
  
  jar {
      baseName = 'blockchain-demo'
      version = '0.0.1'
  }
  
  war {
      baseName = 'blockchain-demo'
      version = '0.0.1'
  }
  
  application {
      mainClass = 'web.Application'
  }
  
  repositories {
      mavenCentral()
  }
  
  sourceCompatibility = 1.8
  targetCompatibility = 1.8
  
  dependencies {
      compile(&quot;org.springframework.boot:spring-boot-starter-thymeleaf&quot;)
      compile(&quot;org.springframework.boot:spring-boot-devtools&quot;)
      testCompile(&quot;org.springframework.boot:spring-boot-starter-test&quot;)
      testCompile(&quot;junit:junit&quot;)
  }
  </code></pre>