medivh-project / medivh-publisher

a gradle plugin that publish gradle project to sonatype
4 stars 3 forks source link

= Medivh-Publish

++++

GitHub Readme Stats

++++

Languages: link:./doc/README_zh.adoc[中文文档] | English

Medivh-publisher is a Gradle plugin designed to publish Gradle projects to the Maven Central Repository. This plugin allows you to perform a complete publication without needing to consult any official documentation.

== Requirements

There are two private configurations that every publisher must have.

link:./doc/en/sonatype_guide.adoc[Sonatype Account Guide] | link:./doc/en/gpg_guide.adoc[GPG Guide]

== Quick Start

⚠️ Check the requirements before proceeding.


Please ensure that you have the required configurations before proceeding. This means that you can get five attributes from gradle.

=== Use In your build.gradle.kts file, add the following code:

[source,kotlin]

plugins { id("tech.medivh.plugin.publisher") version "1.0.0" // other plugin ... }

😺 That's right, you read that correctly. Other than tech.medivh.plugin.publisher, you don’t need to include any other plugins.

Open your terminal and execute:

[source,shell]

./gradlew uploadToSonatype

😺 Exactly, you don’t even need any configuration.

You will see the following output in https://central.sonatype.com/publishing/deployments[Sonatype]:

image::doc/images/publish-complete.png[]

== Document For more advanced configurations and principles, see the link:./doc/en/document.adoc[Document]