当前位置:首页 > 移动开发 > 正文

通过AS提交AndroidLibrary到JCenter仓库

2024-03-31 移动开发

注意事项:
//版本需要一致,如下版本对应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

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/yidong/18617.html