gradle-snapshot-plugin icon indicating copy to clipboard operation
gradle-snapshot-plugin copied to clipboard

Maven Central dependency cannot resolve all dependencies

Open chairbender opened this issue 8 years ago • 1 comments

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

chairbender avatar Mar 10 '16 19:03 chairbender

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)

nathansgreen avatar Mar 11 '16 15:03 nathansgreen