Failed to upload my published files to Bintray from JCenter

I am developing a very simple Gradle plugin (mainly to gain experience) and I have posted a version in my Bintray repository which should be available for viewing here .

I linked my repository to JCenter (and can find my plugin here ), and now, to test it all works, I'm trying to download these artifacts from the Gradle build script and apply my plugin to the project layout:

apply plugin: 'semver' apply plugin: 'java' buildscript { repositories { jcenter() } dependencies { classpath 'com.github.tagc:semver-plugin:0.1.0' } } semver { versionFilePath = 'version.properties' } 

However, Gradle cannot resolve this dependency and throws this exception:

 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 

This is because JCenter doesn't seem to host my files (under com/github/tagc ). I do not know why this is so. Having received confirmation that my repository is associated with JCenter, are there any additional steps I must take to get it to host my downloaded files so that I can access them as shown in the build script? Or is it just that the files need to be displayed in JCenter? About 5 hours have passed since the moment when my repository was connected to JCenter.

Any help or advice would be appreciated.

+6
source share
1 answer

Turns out I just needed to be patient and let JCenter upgrade. Now it is there , and my build script is working fine.

Considering that updating takes quite a lot of time (~ 12 hours for me), I think that the user experience can be improved if for the first time users know that there is a lengthy update process and that they don’t have just skipped the step. This would eliminate some of the anxiety: "I skipped a step, and if so, will I always wait?"

In addition, Bintray UX is absolutely wonderful.

+7
source

Source: https://habr.com/ru/post/980206/


All Articles