2016-02-18 60 views
0

我試圖做一個gradle這個建立與SpringBoot和正在此錯誤:gradle這個org.gradle.api.artifacts.result.ResolvedComponentResult不存在

這裏是我的build.gradle:

buildscript { 
ext { 
    springBootVersion = '1.3.0.RELEASE' 
    jarName = 'SpringSampleMicroservice' 
    jarVersion = ' -jar build/libs/app-0.0.1-SNAPSHOT.jar' 
} 
repositories { 
    mavenCentral() 
    mavenLocal() 
    jcenter() 
} 
dependencies { 
    classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    classpath("io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE") 
} 
} 

repositories { 
    mavenCentral() 
    mavenLocal() 
    jcenter() 
} 

我該如何解決?

回答

0

原來,classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 只支持搖籃2.2+

只需升級和問題解決了!