由于网络错误,Gradle无法获取Artifactory插件

时间:2018-08-16 20:34:44

标签: gradle artifactory

我正在尝试构建需要Artifactory plugin的gradle应用程序。运行./gradlew clean build时出现错误:

$ ./gradlew clean build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Example'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.jfrog.buildinfo:build-info-extractor-gradle:latest.release.
     Required by:
         project :
      > Failed to list versions for org.jfrog.buildinfo:build-info-extractor-gradle.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-extractor-gradle/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-extractor-gradle/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-extractor-gradle/maven-metadata.xml'.
                  > Connection reset

这是我的build.gradle的摘要:

buildscript {
    repositories {
        jcenter()

    }
    dependencies {
        // Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release" 
    }
}

apply plugin: "com.jfrog.artifactory"

请注意,这对我的build.gradle来说应该不是问题,因为我有一位同事使用完全相同的代码运行完全相同的命令,并且对他有用。

如有必要,我将发布一个堆栈跟踪。

0 个答案:

没有答案