3

I am trying to include LazyBones, which is stored here in Bintray/JCenter in my Gradle project as a compile-time dependency, like so:

repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
}

dependencies {
    compile 'com.typesafe.akka:akka-actor_2.10:2.3.12'
    compile 'org.codemonkey.simplejavamail:simple-java-mail:2.3'
    compile 'pledbrook/lazybones-templates:lazybones:0.8.1'     // <-- here
}

I have tried many other combination/permutations of group/artifact names for the 0.8.1 version, but nothing is working/resolving. This is the first time I’ve ever (intentionally) tried depending on a compile binary that is only stored in JCenter, and not available via Maven Central. So I ask: what’s the difference between Maven Central and JCenter coordinates, and what do I need to do so that Gradle can “find” the LazyBones JAR living in JCenter?

JBaruch
  • 22,610
  • 5
  • 62
  • 90
smeeb
  • 27,777
  • 57
  • 250
  • 447

1 Answers1

1

The thing with this Lazybones artifact is that it's not a maven artifact. It's a zip, not in maven layout, and from what I know about Lazybones it's not supposed to be used directly as a dependency from Gradle/Maven. That's why you can't use the normal coordinates.

JBaruch
  • 22,610
  • 5
  • 62
  • 90
  • Ahhh, makes sense @JBaruch (+1) - so can I assume this means that I'd have to fashion my own POM and host LazyBones on my own (say) Artifactory repo in order to pull it in with the Gradle build? – smeeb Jul 28 '15 at 19:49
  • I'd say you should check that you use lazybones correctly. I am pretty sure it's not intended to be a runtime dependency. From what I know about it, you run to create a project, not during work on the project. – JBaruch Jul 28 '15 at 23:21
  • Yeah Im using it correctly for my use case, I need its templating capabilities, not the user-friendly command line tool! – smeeb Jul 29 '15 at 12:53
  • Got it. Not sure if it is embeddable as it it's. You might want to contact the author about that. – JBaruch Jul 29 '15 at 16:40
  • 1
    There is an [open issue](https://github.com/pledbrook/lazybones/issues/63) to make it embeddable. – Peter Ledbrook Jul 30 '15 at 06:19