Publish your artifacts to sonatype's central portal.
The plugin implements sonatype's Central Publisher API (part of).
It will call maven-publish to generate artifacts and publish them to sonatype's central portal.
Note: This is a third party plugin.
Apply this plugin in gradle:
plugins {
id("cn.lalaki.central") version "1.2.11"
}