Introduction If you are working on android library project, you might be wondering how to publish it on Maven like this . Earlier it was done using Android studio plugin maven , but with gradle v 7.0+ it does not work. Now we have to use maven-publish . This post gives you more insights of this procedure. Generally, there are two types of repositories: local and remote. A local repository is the repository Maven creates on the computer it is building on. It is usually located under the $HOME/.m2/repository directory. Remote repository is located on maven server. When any user wants to use our library, they will enter groupId and version of library they want to use. We will create and deploy a new android aar artifact on maven. The process can be summarized as 1. Create Account and repository on Nexus sonatype 2. Configure gradle to create, sign and upload aar file to sonatype. 3. Let sonatype verify the artifacts as per maven requirement (Close ope...
Comments
Post a Comment