注意事项:
//版本需要一致,如下版本对应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}"
}
详细流程:
手机扫一扫
移动阅读更方便
你可能感兴趣的文章