zeeali
zeeali

Reputation: 1604

How to set latest version in Bintray Jcenter

enter image description here

I have successfully published my android library on bintray jcenter. I have a repository which has a package which contains two versions, 0.0.1 and 0.0.2. I want to make the 0.0.2 as the latest and default version.

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:

compile 'com.userexperior:userexperior-android:0.0.2'

Can anyone from the bintray support team or community guid me to achieve it.

Upvotes: 0

Views: 489

Answers (1)

Ariel
Ariel

Reputation: 3506

If you look at the maven-metadata file of your project:

<?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

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...

Upvotes: 1

Related Questions