怎么自己发布一个开源项目
|通过Android Studio发布开源库
1)通过JFrog Bintray平台发布
http://blog.csdn.net/hejjunlin/article/details/52452220
http://blog.csdn.net/yanzhenjie1003/article/details/51672530(十分详细)
http://www.w2bc.com/article/196530(也比较的详细)
http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2015/0227/2502.html(如何
include)
一个很坑爹的问题:http://stackoverflow.com/questions/39400451/how-to-publish-android-library-to-jfrog-bintray,repo 指的并不是仓库的类型,而是你在bintray上创建的仓库的名字。
http://blog.csdn.net/linhh90/article/details/50510725
2)通过JitPack平台发布Github开源项目,生成Compile链接。 (推荐)
http://www.jianshu.com/p/f1b2ad4c507a
需要注意JitPack可能会有缓存,导致你的compile链接不对,需要重新登录一下。
--->关于JitPack发布开源项目的坑:
1)ShareOn Github一定不要开×××
2) 缓存十分的严重,把github上的库删除了,重新上传,如果名字一样会出现各种问题。
3)share项目到github上后,要建立一个release,否则jitpack无法生成compile链接。
4)我自己的一个项目:https://github.com/XinYiWorld/CZBaseDevLibary
为了给CZBaseDevTool增加下载功能,我创建了一个module精简xutils的只保存它的数据
库功能,然后让CZBaseDevTool去依赖。然后出现了以下问题:
* What went wrong:
A problem occurred configuring project ':CZBaseDevTool'.
> Cannot evaluate module XDbUtils : Configuration with name 'default' not found.
是各种百度没有搞定,无赖之下只有将xutils直接写到czdevtools里。但是这个问题到底是怎么搞的呢,在本地可以run起来,但是到了Jitpack我就无法compile来更新我的这个框架。
|Github Readme.md文件编辑
http://blog.csdn.net/kaitiren/article/details/38513715
http://www.cnblogs.com/leechanx/archive/2013/03/25/3322616.html
http://blog.sina.com.cn/s/blog_4a2100f801016v05.html(排版做的很好)
http://ezgif.com/(项目演示gif图片生成)
http://blog.csdn.net/wenmingzheng/article/details/50625043(github上传演示动画)
****怎么在发布的时候同时打包源码***
http://m.blog.csdn.net/article/details?id=52621687
tasksourcesJar(type:Jar){fromandroid.sourceSets.main.java.srcDirsclassifier='sources'}taskjavadocJar(type:Jar){fromandroid.sourceSets.main.java.srcDirsclassifier='javadoc'}//产生相关配置文件的任务artifacts{archivesjavadocJararchivessourcesJar}
***********************************
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。