1.註冊bintray.com賬號
進入https://bintray.com/,註冊賬號。
注意!!!必須點紅色區域,因爲涉及到後面是否能上傳到Jcenter
2.創建組織(Create Organization)-填寫必要內容即可
點擊後信息可以隨意填,填寫完後,會多出紅色的部分。因爲自己第一次隨意填了數字12.
3.添加新倉庫(Add New Repository)
建立成功後,如上圖。
4.項目配置
4.1 首先在項目的build.gradle 中添加
classpath 'com.novoda:bintray-release:0.9.1'
具體的版本參考:https://github.com/novoda/bintray-release
4.2 在你需要的module中添加配置
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = '12' //bintray賬戶下某個組織id-不可自定義
groupId = 'com.oversea.baseutils' //maven倉庫下庫的包名,一般爲模塊包名,自定義
artifactId = 'baseUtils-component' //項目名稱-自定義
publishVersion = '0.0.1' //版本號-自定義
desc = 'custom chart for android' //項目介紹,可以不寫
website = ‘’ //項目主頁,可以不寫
}