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
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.
source share