I found a way to do this :
Hosting a Maven repository on github
But when I Archives a aar for a Android Library,It always can't found!
I was use the gradle to archives:
apply plugin: 'maven'
uploadArchives {
repositories.mavenDeployer {
repository(url: "file:///Users/kycq/repo")
pom.project {
groupId "com.test"
artifactId "widget"
version project.android.defaultConfig.versionName
}
}
}
How to archives the aar to maven on github and gitlab?