This post shows build.gradle configuration to be able to push artifacts to local Maven repo. I've taken Android library in its "aar" format as artifact for example.
First add "maven-publish" plugin to enable publishing artifacts from build.gradle:
First add "maven-publish" plugin to enable publishing artifacts from build.gradle:
Don't forget to add local maven repo:apply plugin: 'maven-publish'
Add publishing block now:repositories { mavenLocal() }
publishing { publications { mavenJava(MavenPublication) { groupId <GROUP_ID> artifactId <ARTIFACT_ID> version <currentVersion> artifacts = ["${buildDir}/outputs/aar/<your_android_library>.aar"] } } }