- Create an account at plugins.gradle.org.
- Generate an API key under Account → API Keys.
- Add credentials to
~/.gradle/gradle.properties(never commit these):
gradle.publish.key=<your-api-key>
gradle.publish.secret=<your-api-secret>- Claim the plugin ID
com.tazzledazzle.pythonon first publish (Gradle will prompt in the portal UI).
./gradlew check publishPluginspublishPlugins runs validation, signs the plugin metadata, and uploads to the portal. New versions may take a few minutes to appear in search.
The publish workflow runs on version tags (v*).
Add GitHub repository secrets:
| Secret | Value |
|---|---|
GRADLE_PUBLISH_KEY |
Portal API key |
GRADLE_PUBLISH_SECRET |
Portal API secret |
Release flow:
# Bump version in gradle.properties, commit, then:
git tag v0.1.0
git push origin main --tagsIn settings.gradle.kts:
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}In build.gradle.kts:
plugins {
id("com.tazzledazzle.python") version "0.1.0"
}Use the latest published version when bumping.