请问如何创建一个android私有的library,并可以使其他人可以通过gradle直接引用?
看到这篇文章:
Android Library 创建与发布指南
文中创建的library是发布到公共库上的
因为是是公司内部项目,不能发到公共库上,请问应该如何实现呢?
最好能想iOS中的cocoapods一样,将项目发布到一个私有的github仓库中,然后需要公司内部的人引用这个github仓库地址就可以了。
谢谢!!!!!!!
发现一个第三方的仓库JitPack,可以实现直接读取设置好的git仓库中的release版本。
不过如果是私有git仓库,需要收费并且只支持github的,没看到支持别的git仓库
https://jitpack.io
怪我咯2017-04-17 17:55:07
Cut your lib into an aar package or jar package, and then upload it to the company's private maven warehouse. Set the maven warehouse address and account password in the app project. In the gradle.build file, pass the form compile 'com.alibaba:fastjson: 1.2.13' to quote, for details, please refer to the article "Gradle in action: publishing aar packages to maven warehouse"
PHPz2017-04-17 17:55:07
The main idea is
Build services on a private server
Use gradle script to upload
When quoting, remember to declare the warehouse address in the build.gradle
file at the
I was working on this some time ago, so I wrote a blog to record it, click here