Gradle找不到影子插件

时间:2017-07-17 21:36:26

标签: java gradle

配置根项目'preprator'时出现问题。

> Could not resolve all files for configuration ':classpath'.
> Could not find com.github.jengelman.gradle.plugins:shadow:2.0.1.

在以下位置进行搜索:

         file:/Users/lion-mane/.m2/repository/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.pom
         file:/Users/lion-mane/.m2/repository/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.jar
         https://repo1.maven.org/maven2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.pom
         https://repo1.maven.org/maven2/com/github/jengelman/gradle/plugins/shadow/2.0.1/shadow-2.0.1.jar

Required by:
project :

1 个答案:

答案 0 :(得分:2)

根据提供的搜索路径,您的资源库中只有mavenCentral()

你需要JCenter。

buildscript {
    repositories {
        jcenter()
    }