【发布时间】:2021-11-19 04:23:01
【问题描述】:
我正在尝试将项目 https://archive.apache.org/dist/groovy/2.5.8/sources/apache-groovy-src-2.5.8.zip 的 Gradle 版本从 4.10.3 升级到 6.8 为此,我以这种方式修改了 build.gradle https://gist.github.com/iva-nova-e-katerina/c2fe31c429d19ecf2e08e53f638de451 ,但是在构建此项目时出现以下错误:
└─$ ./gradlew -PskipIndy clean distBin 1 ⨯
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'groovy'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1.
Required by:
project :
> Could not resolve me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1.
> Could not get resource 'https://dl.bintray.com/melix/gradle-javadoc-hotfix-plugin/me/champeau/gradle/gradle-javadoc-hotfix-plugin/0.1/gradle-javadoc-hotfix-plugin-0.1.pom'.
> Could not GET 'https://dl.bintray.com/melix/gradle-javadoc-hotfix-plugin/me/champeau/gradle/gradle-javadoc-hotfix-plugin/0.1/gradle-javadoc-hotfix-plugin-0.1.pom'. Received status code 403 from server: Forbidden
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
你能告诉我如何解决这个问题吗?
【问题讨论】:
-
Bintray 已关闭。找到另一个带有所需工件的 repo。 infoq.com/news/2021/02/jfrog-jcenter-bintray-closure
-
@daggett 对不起,我不明白:mavenCentral() 已打开,并且该插件在 mvnrepository.com/artifact/me.champeau.gradle/… 中可用,但 gradle 在 bintray 中查找,为什么?