Skip to content

Commit

Permalink
Update README.md (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd authored Nov 2, 2024
1 parent 383b320 commit 5b2223a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# maven-central

Project isolation compatible publishing plugin, supporting [the new Central Portal Publishing API](https://central.sonatype.org/publish/publish-portal-api/) only.

## Install

This package/Gradle plugin is uploaded to MavenCentral and GitHub packages.

```kotlin
// settings.gradle (.kts)
pluginManagement {
repositories {
mavenCentral()
}
}
```

## Usage

Install the plugin in each project.

```kotlin
// build.gradle (.kts)
plugins {
id("io.github.hfhbd.mavencentral") version "LATEST"
}
```

You need to setup and configure the publications using the core `maven-publish` and `signing` plugins.

To publish the publications, call `./gradlew publishToMavenCentral -PmavenCentralUsername=MYUSERNAME -PmavenCentralPassword=MYSECRETPASSWORD`.
Publishing uses the default automatic behavior.

0 comments on commit 5b2223a

Please sign in to comment.