Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hfhbd/mavencentral
https://github.com/hfhbd/mavencentral
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/hfhbd/mavencentral
- Owner: hfhbd
- License: apache-2.0
- Created: 2024-10-28T20:05:38.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2024-11-13T16:28:47.000Z (6 days ago)
- Last Synced: 2024-11-13T17:30:13.931Z (6 days ago)
- Language: Kotlin
- Size: 106 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.