(주로 경험을 얻기 위해) 매우 기본적인 Gradle 플러그인을 개발 중이며 Bentray 저장소에 볼 수있는 버전을 게시했습니다 (here).Jenter에서 Bintray에 게시 된 파일을 다운로드 할 때 문제가 발생했습니다.
내 저장소를 JCenter에 연결했으며 (내 플러그인 here을 찾을 수 있음) 이제는 모든 플러그인을 테스트하기 위해 Gradle 빌드 스크립트에서 해당 아티팩트를 다운로드하고 모의 프로젝트에 플러그인을 적용하려고합니다. :
apply plugin: 'semver'
apply plugin: 'java'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.tagc:semver-plugin:0.1.0'
}
}
semver {
versionFilePath = 'version.properties'
}
그러나, Gradle을 그 의존성을 해결하고이 예외를 throw 할 수 없습니다
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'TestSemver'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find com.github.tagc:semver-plugin:0.1.0.
Searched in the following locations:
https://jcenter.bintray.com/com/github/tagc/semver-plugin/0.1.0/semver-plugin-0.1.0.pom
https://jcenter.bintray.com/com/github/tagc/semver-plugin/0.1.0/semver-plugin-0.1.0.jar
Required by:
:TestSemver:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.703 secs
JCenter이 (com/github/tagc
에서) 내 파일을 호스팅하지 않는 것 때문이다. 이것이 왜 그런지 나는 확신하지 못합니다. 내 저장소가 JCenter와 연결되어 있다는 확인을 얻은 후 빌드 스크립트에 표시된 방식으로 내 업로드 파일을 호스팅 할 수 있도록 추가 단계가 필요합니까? 아니면 파일이 JCenter에 표시되는 데 시간이 걸리는 것입니까? 내 저장소가 JCenter에 연결되어 약 5 시간이 지났습니다.
도움이나 조언을 보내 주시면 감사하겠습니다.
bintray에 로그인하고 이슈가 공개되기 전에 승인해야합니다. 네가 했니? –
@MarkVieira 나는 그 (것)들이 간행되었다는 것을 아주 확실하다. 로그 아웃 한 상태에서 파일을 볼 수 있으며 피드에 'tagc에서 gradle-semver-plugin의 버전 0.1.0을 릴리스했습니다'라고 표시됩니다. – Tagc
그리고 저장소 설정 페이지에서 JCenter가 "링크 대상"섹션 아래에 나열되어 있습니까? –