引用公共库
build.gralde
allprojects {
repositories {
jcenter()
maven {
url "" //Maven库地址
}
}
//Gradle缓存更新时间
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, 'seconds')
}
}
app/build.gralde
compile('GROUP_ID:ARTIFACT_ID:VERSION') {
changing true;
}
配置公共库
build.gralde
apply plugin: 'maven'
uploadArchives{
repositories{
mavenDeployer{
repository (url:''){
authentication(userName:'',password:'')
}
pom{
groupId=''
artifactId=""
version=""
name="" //Module名称
packaging="aar"
}
}
}
}