#groovy #migration #jcenter
Вопрос:
Я пытаюсь обновить версию Gradle с 4.10.3 до 6.8 для проекта https://archive.apache.org/dist/groovy/2.5.8/sources/apache-groovy-src-2.5.8.zip и для этого я изменил 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
Не могли бы вы сказать мне, как это исправить?
Комментарии:
1. Бинтрей был закрыт. Найдите другое репозиторий с требуемым артефактом. infoq.com/news/2021/02/jfrog-jcenter-bintray-closure
2. @daggett Извините, я не понимаю: MavenCentral() включен, и этот плагин доступен там mvnrepository.com/artifact/me.champeau.gradle/… но грэдл смотрит в бинтрей, почему?
Ответ №1:
Этот плагин найден в репозитории
maven `{ url "https://repo.spring.io/plugins-release" }
смотри сюда https://gitee.com/mirrors/spring-social/blob/master/build.gradle`