vanniktech / gradle-maven-publish-plugin

A Gradle plugin that publishes your Android and Kotlin libraries, including sources and javadoc, to Maven Central or any other Nexus instance.
https://vanniktech.github.io/gradle-maven-publish-plugin
Apache License 2.0
1.31k stars 120 forks source link

Manual Release via Plugin #862

Open jamesward opened 3 weeks ago

jamesward commented 3 weeks ago

I have a CI action where I want to break the publishing to the staging repo apart from the release. I have a Gradle task that does:

./gradlew publishToMavenCentral

And later does:

./gradlew releaseRepository

But this results in the following on releaseRepository:

A deployment id needs to be provided with `--repository` when publishing through Central Portal

Is there another way to break these two tasks apart?