【发布时间】:2019-06-12 17:48:25
【问题描述】:
我已经向https://bintray.com/tylerlong/maven/ringcentral-pubnub发布了一个java库
我尝试通过 gradle 使用它:
dependencies {
...
compile 'com.ringcentral:ringcentral-pubnub:1.0.0-beta10'
}
当我运行./gradlew build 时,出现以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find com.ringcentral:ringcentral-pubnub:1.0.0-beta10.
Searched in the following locations:
- https://jcenter.bintray.com/com/ringcentral/ringcentral-pubnub/1.0.0-beta10/ringcentral-pubnub-1.0.0-beta10.pom
- https://jcenter.bintray.com/com/ringcentral/ringcentral-pubnub/1.0.0-beta10/ringcentral-pubnub-1.0.0-beta10.jar
Required by:
project :
这是build.gradle 文件:https://github.com/ringcentral/ringcentral-pubnub-java/blob/master/build.gradle
我真的不知道为什么它不起作用。我在这里有另一个图书馆,它就像一个魅力:https://bintray.com/tylerlong/maven/ringcentral。我以类似的方式发布了这两个库。为什么一个有效而另一个无效?
这里是重现问题的示例项目:https://github.com/tylerlong/ringcentral-pubnub-demo
【问题讨论】: