gradle org.gradle.api.artifacts.result.ResolvedComponentResult不存在

时间:2016-02-18 16:37:26

标签: gradle build

我正在尝试使用SpringBoot进行gradle构建,并收到此错误:

这是我的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()
}

我该如何解决?

1 个答案:

答案 0 :(得分:0)

原来foo-$RELEASE_VERSION 仅支持Gradle 2.2 +

只需升级并解决问题!