【发布时间】:2015-07-28 13:53:02
【问题描述】:
我正在尝试在我的 Gradle 项目中包含 LazyBones,即 stored here in Bintray/JCenter 作为编译时依赖项,如下所示:
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
}
我已经为0.8.1 版本尝试了许多其他组/工件名称的组合/排列,但没有任何工作/解决。这是我第一次(有意地)尝试依赖仅存储在 JCenter 中且无法通过 Maven Central 获得的编译二进制文件。所以我问:Maven Central 和 JCenter 坐标有什么区别,我需要做什么才能让 Gradle “找到” JCenter 中的 LazyBones JAR?
【问题讨论】:
标签: java gradle maven-central jcenter lazybones