关于bintray上传的方法

来源:互联网 发布:小榕哥sql注入工具 编辑:程序博客网 时间:2024/06/02 07:02

1.首先你需要在项目中创建一个library


2.添加

apply plugin: 'com.novoda.bintray-release'
publish {    userOrg = 'hongfuchang1'    groupId = 'hongfuchang'    artifactId = 'media'    publishVersion = '0.3.4'}到library的gradle文件中
classpath 'com.novoda:bintray-release:0.4.0'
到项目的gradle文件中
3.运行命令
$ ./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
备注username是你的bintray账号名字 api则是账户的api
userOrg 是pakage的名字
novoda:bintray默认设置名字maven的文件夹
groupId 是以后compile里面的文字
artifactId 是bintray的最后的文件夹名字
publishVersion 是版本号
注相关文档:
https://github.com/novoda/bintray-releasehttp://www.jianshu.com/p/0ba8960f80a9注册http://www.jianshu.com/p/0ba8960f80a9 
注:注释最好是英文不然容易出错具体方法网上有未深入研究




0 0
原创粉丝点击