1

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?

cs x
  • 621
  • 2
  • 8
  • 23

1 Answers1

0

The normal maven plugin does not work for android builds. Use this plugin instead: https://github.com/dcendents/android-maven-gradle-plugin

Have a look at these projects for some working examples:

larsgrefer
  • 2,735
  • 19
  • 36