通过AS提交AndroidLibrary到JCenter仓库

注意事项:
//版本需要一致,如下版本对应gradle-4.4-all.zip
 dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
        classpath 'com.novoda:bintray-release:0.8.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
//新增:
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'com.novoda.bintray-release'

publish {
userOrg = '####'
groupId = 'com.dznet.bindknife'
artifactId = 'bindknife'
version = '1.0.0'
description = 'Super duper easy way to release your Android and other artifacts to bintray'
website = "https://github.com/z-pro/${rootProject.name}"
}

 

详细流程:

https://blog.csdn.net/yang123465/article/details/54972351

猜你喜欢

转载自www.cnblogs.com/jasonzeng/p/11686933.html