-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |