提交 010b0407 编写于 作者: D dingtaotao

feat(common): common新增发布脚本

上级 9e747dd1
apply plugin: 'com.android.library'
apply plugin: 'io.objectbox'
// 发布到本地测试用
apply from: 'publish.gradle'
android {
compileSdkVersion SDK_VERSION.compileSdkVersion
......
//发布本地或者远程服务器等脚本都放在此类中
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
// 发布到本地路径进行测试
repository(url:uri('../repo'))
pom.groupId = active.applicationId //groupId ,自行定义,一般是包名
pom.artifactId = 'common' //artifactId ,自行定义
pom.version = 'latest' //version 版本号
}
}
doLast {
// 删除生成的build/lib文件夹
delete libsDirName
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册