[英]How to set latest version in Bintray Jcenter
I have successfully published my android library on bintray jcenter. 我已经在Bintray jcenter上成功发布了我的android库。 I have a repository which has a package which contains two versions, 0.0.1 and 0.0.2.
我有一个存储库,其中包含一个包含两个版本0.0.1和0.0.2的软件包。 I want to make the 0.0.2 as the latest and default version.
我想将0.0.2作为最新的默认版本。
Whenever my library users use the following script to download my library, I want it to download from the latest version always: 每当我的图书馆用户使用以下脚本下载我的图书馆时,我都希望它始终从最新版本下载:
compile 'com.userexperior:userexperior-android:+'
I tried in two sample apps, the above script is picking the old version 0.0.1, though I am able to use the latest version 0.0.2 by manually writing it in the gradle script but not via a "+" sign in the gradle script: 我在两个示例应用程序中尝试过,上面的脚本选择的是旧版本0.0.1,尽管我可以通过在gradle脚本中手动编写最新版本的0.0.2,但不能通过gradle中的“ +”号来使用脚本:
compile 'com.userexperior:userexperior-android:0.0.2'
Can anyone from the bintray support team or community guid me to achieve it. Bintray支持团队或社区中的任何人都可以指导我实现这一目标。
If you look at the maven-metadata file of your project: 如果查看项目的maven-metadata文件:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.userexperior</groupId>
<artifactId>userexperior-android</artifactId>
<version>0.0.2</version>
<versioning>
<latest>0.0.2</latest>
<release>0.0.2</release>
<versions>
<version>0.0.1</version>
<version>0.0.2</version>
</versions>
<lastUpdated>20180423152323</lastUpdated>
</versioning>
</metadata>
You can see that the latest tag is directing it to version 0.0.2: 0.0.2 您可以看到最新的标签将其定向到0.0.2版:0.0.2
Can you check if you are using the right way to resolve latest version? 您可以检查是否使用正确的方法来解析最新版本吗? I'm not a gradle expert but it looks like an ANT method for latest...
我不是gradle专家,但看起来像是最新的ANT方法...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.