

For each library of your project, add this to your gradle.properties: The instructions are almost the same as the ones over gradle-mvn-push. Bundles the aar, javadocs and sources to be publishedįeel free to modify the plugin for your own needs.Generates the javadocs from java/kotlin files (using dokka if it’s available and properly setup in the project).

Specifies the maven repository and its credentials.The Android gradle plugin will now generate a proper POM file based on the project’s dependencies.įor publishing maven packages, I use an adapted version of Chris Banes’ goodie gradle-mvn-push which you can find here: publish_adle You can read more about the maven-publish plugin here. With the recent release of Android Studio 3.6, publishing to maven repositories got simpler. Instead, you should define GITHUB_USER and GITHUB_TOKEN in an untracked properties file or pass them directly using the gradlew -P parameter for the publish task. These credentials shouldn’t be added to your git repository.
