Android Bump Version
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Set an Android (Gradle/Kotlin DSL) project’s version to an exact literal value across every file that needs to
agree with it: lib/build.gradle.kts’s `libraryVersion, app/build.gradle.kts’s `versionName (and, per this
catalog’s own convention, versionCode), and — optionally — README.md/Antora version mentions. This skill
never computes a version itself; it only applies exactly the string it is given, after validating its shape.
Purpose
iru-android-bump-version is the Android/Gradle-ecosystem equivalent of a Maven pom.xml version bump: a small,
deterministic skill that a caller (typically iru-release) can invoke twice per release — once to strip the
-SNAPSHOT suffix for the release itself, once to open the next development cycle — without either caller having
to hand-edit Kotlin DSL build scripts or reason about versionCode semantics. Because Gradle doesn’t parse or
validate a free-form version string the way npm’s version command does, this skill validates with a regex
instead and rewrites each file with a targeted python3 substitution.
Kotlin Multiplatform projects are out of scope: when the Kotlin Multiplatform plugin is applied anywhere in the build (a KMP app’s Android host module included), the skill stops and hands the request to KMP Bump Version instead.
Plugin
Shipped by the iru-android plugin of the ai-catalog marketplace (install with /plugin install iru-android@ai-catalog; see Plugins).
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
Yes |
The exact target version string (e.g. |
None — the skill asks for it if omitted; an empty or whitespace-containing value is rejected up front. |
|
No |
Whether to also update |
Ask — the skill asks once, after Step 2 confirms whether such mentions actually exist. |
|
No |
The upcoming pre-release version (e.g. |
None — a development marker is then set to |
|
No |
When |
|
Outputs
-
lib/build.gradle.kts’s `val libraryVersion = "…"updated to the new version, when alibmodule exists. -
app/build.gradle.kts’s `versionNameupdated to the new version, when anappmodule exists;versionCodeincremented by exactly 1 only when<new-version>does not end in-SNAPSHOT(left unchanged otherwise). -
Optionally,
README.md’s dependency snippet (release/development markers mapped using `next-versionwhen given),docs/antora.yml’s `version:field, and/or Antora pages with a literal dependency snippet, ifsync-fileswas accepted. -
A
./gradlew -q helpsanity check confirming the rewritten Kotlin DSL is still syntactically valid (skipped on adry-run). -
A report of the old and new version, every file actually changed (or skipped and why), whether
versionCodewas bumped, and a warning to review the diff before committing. -
No commit is created — this skill only edits files (or, on
dry-run: yes, only prints diffs).
Execution flow
Dependencies
Invokes
None — iru-android-bump-version is a leaf skill; it only runs shell/python3 file rewrites and a Gradle sanity
check, it does not call any other skill in this catalog.
It stops and redirects Kotlin Multiplatform projects to KMP Bump Version (a hand-off, not an invocation).
Invoked by
-
Release — Step 6, version bump for Android/Gradle projects.
Source
SKILL.md on GitHub — the file this page was generated from.