spring-boot gradle plugin can't be found

前端 未结 8 1255
醉话见心
醉话见心 2021-02-05 02:44

I have a separate gradle script that is just adding spring-boot plugin. It looks like this:

buildscript {
    repositories {
        mavenLocal()
        mavenCe         


        
8条回答
  •  忘了有多久
    2021-02-05 02:56

    1. Add:

      buildscript {
          repositories {
              maven {
                  url "https://plugins.gradle.org/m2/"
              }
          }
          dependencies {
              classpath "org.springframework.boot:spring-boot-gradle-plugin:2.0.4.RELEASE"
          }}
      
    2. Change:

      apply plugin: 'spring-boot'
      

      to:

      apply plugin: "org.springframework.boot"
      

提交回复
热议问题