Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
428 views
in Technique[技术] by (71.8m points)

android - How to update library for new version in Bintray?

enter image description here

I published my library to jCenter as v1.0.0 by using novoda/bintray-release at the first time. Actually I want to update it as v1.0.1, how can i do it?

[EDITED] I added the image for release note of another library as below.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

These are the steps I follow whenever I update my Bintray library:

  1. Update the libraryVersion name in your library module build.gradle file. See this answer for more on that.

    ext {
        ...     
        libraryVersion = '2.0.0'
        ...
    }
    
  2. Create a new version in Bintray that matches what you called libraryVersion in your build.gradle file.

enter image description here

  1. In the root folder of your project, run the following command in a terminal.

    ./gradlew bintrayUpload
    

    There are different things that can fail here. Google the error code to solve it. Here were a couple recent ones for me.

  2. Update your GitHub documentation and create new release matching the Bintray version.

After following these steps my project was immediately updated on Bintray (and jCenter).

Notes

  • It is possible to make an update by only changing the libraryVersion and running ./gradlew bintrayUpload (and not create a new release in Github or a new version in Bintray). However, when I did that it removed the version history in Bintray, so my current preference is to do all four steps above.

Related


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...