Gradle 插件,封装 Maven 上传
目前实现的功能点:
1、封装 maven-publish
插件,提供UploadInfo
闭包块
2、主制品支持Jar
和AAR
等类型上传
3、副产物支持源码上传、依赖管理pom
文件上传
pluginManagement {
repositories {
...
maven { url 'https://www.wanlinruo.com/nexus/repository/maven-public/' }
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == 'com.wanlinruo.plugin.upload') {
useModule("com.wanlinruo.plugin:upload:0.0.64-SNAPSHOT")
}
}
}
}
plugins {
...
id 'com.wanlinruo.plugin.upload' version '0.0.64-SNAPSHOT' apply false
}
plugins {
...
id 'com.wanlinruo.plugin.upload'
}
uploadInfo {
version = "xxx"
artifactId = "xxx"
groupId = "xxx"
}
插件是基于maven-publish
进行开发的,所以agp版本需要最低支持在3.6.3