gradle-snapshot-plugin
gradle-snapshot-plugin copied to clipboard
Maven Central dependency cannot resolve all dependencies
I included this project in my gradle script like so: buildscript { repositories { mavenCentral() } dependencies { classpath 'me.cmoz.gradle:gradle-snapshot-plugin:2.0.2' } }
But when I try to run my build, I get:
Could not find org.tmatesoft.hg4j:hg4j:1.1.0. Required by: myproject:unspecified > me.cmoz.gradle:gradle-snapshot-plugin:2.0.2
This is because the hg4j plugin, required by this project, is no longer available in maven central. The only way you can get it is via a mercurial repository: http://hg.hg4j.com/hg4j
Try switching from mavenCentral()
to jcenter()
. If you look in this project's build.gradle
file you'll see it uses http://maven.tmatesoft.com/content/repositories/releases/
instead of maven central to get this dependency. (See https://bintray.com/bintray/jcenter/org.tmatesoft.hg4j%3Ahg4j/view)