Android Studio 发布开源项目到Jcenter重要步骤记录
2017-04-10 10:59
417 查看
连续在Jcenter发布了两个项目,记录下其中的主要操作步骤。
https://bintray.com 中注册账号,建议直接github登录。
创建Package
把项目分离成Module
在项目根目录的build.gradle中添加bintray插件
在local.properties中添加bintray认证
Module中的build.gradle中的配置
在Android Studio终端使用两条命令上传到Jcenter
8.在https://bintray.com将项目添加到Jcenter
https://bintray.com 中注册账号,建议直接github登录。
创建Package
把项目分离成Module
在项目根目录的build.gradle中添加bintray插件
dependencies { ... // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1" classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' }
在local.properties中添加bintray认证
bintray.user=solvebugs// https://bintray.com/的用户名 bintray.apikey=xxxx//https://bintray.com/ Api Key
Module中的build.gradle中的配置
ext { bintrayRepo = 'maven' bintrayName = 'CustomRatingBar' //在Maven上创建的Package的名字 publishedGroupId = 'com.zq.customratingbarmoudle' libraryName = 'customratingbarmoudle' //moudle名字 artifact = 'customratingbarmoudle' // libraryDescription = ' ' siteUrl = 'https://github.com/SolveBugs/CustomRatingBar' gitUrl = 'https://github.com/SolveBugs/CustomRatingBar.git' libraryVersion = '1.0.0' developerId = 'zq' developerName = 'qiang zhen' developerEmail = '18317857586@163.com' licenseName = 'The Apache Software License, Version 2.0' licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' allLicenses = ["Apache-2.0"]} apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
在Android Studio终端使用两条命令上传到Jcenter
1. gradlew install 2. gradlew bintrayUpload
8.在https://bintray.com将项目添加到Jcenter
Add to JCenter
相关文章推荐
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- Android Studio 发布开源项目到Jcenter重要步骤记录
- 一起来学Android Studio:(六)使用Gradle发布Android开源项目到JCenter
- 利用Android Studio快速发布开源项目到Jcenter
- Android studio 使用Gradle发布Android开源项目到JCenter 总结
- 使用Gradle发布开源项目到Jcenter:(三)、android studio 发布时遇到的坑
- Android studio 使用Gradle发布Android开源项目到JCenter 总结