gradle-maven-publish-plugin
gradle-maven-publish-plugin copied to clipboard
AGP 7.1 supports javadocJar, sourcesJar and variant publishing
Hi, I just read these 3 release notes, I thought I would call it out: https://developer.android.com/studio/releases/gradle-plugin#build-variant-publishing
Does this mean most of this plugin can be replaced with standard Gradle publishing / AGP configuration?
See also https://developer.android.com/studio/build/maven-publish-plugin
This plugin builds on top of the new APIs the same way it was built on top of the old APIs. The main difference now is that we need to do less here since AGP will create the javadoc jar and sources jar for us. It definitely has gotten easier to replace this plugin now with just configuring it yourself but I think there is still value here
- you don't need to know how the publishing needs to be configured, which is this for AGP plus configuring configuring to publish to maven central, signing and filling the pom
- the plugin offers a unified API regardless of what you want to publish, so you don't need to care about whether you have an Android, a Java, a Kotlin multiplatform library or a Gradle plugin
- convenience features like Gradle properties for pom values or easy configuration for in memory signing keys
Keeping this open to improve the docs in this regard
Nice one, @gabrielittner!
The readme and website now have a section about the advantages of this plugin over just using maven-publish