版本 gradle 8.0
apply plugin: 'maven-publish'
publishing{
publications {
maven(MavenPublication) {
artifact "libs/x.aar"
groupId "com.xxx.xxx"
artifactId "x"
version "1.0.1"
}
}
repositories{
maven {
// 本地发布的目录
url uri("../localMaven")
}
}
}
别忘了要在settings.gradle中的repositories中设置maven路径
maven{
url 'file:///localMaven'
}
网友评论