apply plugin: ‘com.android.library’
apply plugin: ‘com.github.dcendents.android-maven’
apply plugin: ‘com.jfrog.bintray’
其中com.android.library是android的插件,表示它是一个android library。
应用成功后,你会看到插件生成的task,如下图所示:
通过这个task,我们可以将我们的library上传到maven仓库当中,现在还不行,我们还得继续完成我们的配置。
build.gradle配置
==============
我们需要在library工程的build.gradle配置我们的相应的信息,下面是示例代码:
apply plugin: ‘com.android.library’
apply plugin: ‘com.github.dcendents.android-maven’
apply plugin: ‘com.jfrog.bintray’
// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version
version = “1.0.0”
android {
compileSdkVersion 19
buildToolsVersion “23.0.3”
resourc