Skip to content

Commit dd8ddc3

Browse files
zeevmoneyclaude
andcommitted
Add documentation for Maven Central Portal configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1fbc37f commit dd8ddc3

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,21 @@ publishing {
196196
}
197197

198198
// Maven Central Portal publishing configuration
199+
// See: https://github.com/yananhub/flying-gradle-plugin
199200
mavenCentral {
201+
// Local staging directory where artifacts are collected before upload.
202+
// The plugin publishes JARs, POM, and signatures here first, then zips
203+
// and uploads the bundle to Maven Central Portal.
200204
repoDir = layout.buildDirectory.dir("staging-deploy")
201-
// Token from Maven Central Portal (https://central.sonatype.com/account)
205+
206+
// Authentication token from Maven Central Portal.
207+
// Generate at: https://central.sonatype.com/account -> Generate User Token
208+
// The token is a base64-encoded "username:password" string.
202209
authToken = System.getenv("MAVEN_CENTRAL_TOKEN")
203-
// Automatically publish after uploading (set to false to manually release)
210+
211+
// Publishing mode:
212+
// - "AUTOMATIC": Artifacts are automatically published after validation
213+
// - "USER_MANAGED": Artifacts stay in pending state for manual release
204214
publishingType = "AUTOMATIC"
205215
}
206216

0 commit comments

Comments
 (0)