美文网首页技巧篇
使用JitPack发布github工程中的指定库(Library

使用JitPack发布github工程中的指定库(Library

作者: SimpleCat | 来源:发表于2019-05-31 17:27 被阅读0次

Case:在我们编写一个第三方库时一般会同时存在一个测试Module, 那么如何在JitPack发布时只发布指定的module忽略掉冗余的测试module呢?

步骤一:顶级build.gradle添加 classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

步骤二:库模块build.gradle头部添加

apply plugin:'com.android.library'

apply plugin: 'com.github.dcendents.android-maven'

group='com.github.用户名'

步骤三:提交代码到github仓库,发布release版本,后续步骤不再详述

参考:

https://blog.csdn.net/asmcvc/article/details/72770584

http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2015/0227/2502.html

相关文章

网友评论

    本文标题:使用JitPack发布github工程中的指定库(Library

    本文链接:https://www.haomeiwen.com/subject/kupgtctx.html