每当我更新Bintray库时,我都会按照以下步骤进行:
Update the libraryVersion
name in your library module build.gradle file. See this answer for more on that.
ext {
...
libraryVersion = '2.0.0'
...
}
Create a new version in Bintray that matches what you called libraryVersion
in your build.gradle file.
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.
Update your GitHub documentation and create new release matching the Bintray version.
按照这些步骤之后,我的项目立即在Bintray(和jCenter)上得到了更新。
libraryVersion
并运行./gradlew bintrayUpload
可以进行更新(而无需在Github中创建新的发布版本或在Bintray中创建新版本)。但是,当我这样做时,它会删除Bintray中的版本历史记录,因此我目前更喜欢执行上述所有四个步骤。