Update gradle dependency

From seijikohara/femto-car-launcher · View interactive version

Update gradle dependency is an AI agent skill from the GitHub repository seijikohara/femto-car-launcher. Version-catalog procedure for adding or upgrading Gradle dependencies and plugins, plus the webmap (pnpm) dependency path, in femto-car-launcher. This skill is the dependency-update procedure SSOT; the project rule (catalog first, BOM precedence, Kotlin/Compose-Compiler lock-step) lives at .claude/r

How to use this skill

Skill file

Updating a Gradle dependency

Rules: see .claude/rules/dependencies.md.

Procedure

  1. Decide the shape of the change.
  1. Edit gradle/libs.versions.toml in this order:
  1. Reference from app/build.gradle.kts using the alias:

```kotlin

implementation(libs.androidx.compose.material3)

```

Hyphens in the catalog key become dots on the alias side.

  1. Sanity-check what resolved:

```bash

./gradlew app:dependencies --configuration debugRuntimeClasspath \

| grep -iE 'kotlin-stdlib|<your-artifact>' | head

```

  1. Verify with the CODE0 skill.
  1. Document in the commit body when:

Webmap (pnpm) dependencies

Renovate automerges routine (non-major) webmap bumps — this path is for manual or major bumps (maplibre-gl, Vite, TypeScript).

  1. Edit webmap/package.json — or, for the Vite+ toolchain pins (vite, vite-plus), the catalog in webmap/pnpm-workspace.yaml — then run pnpm install under webmap/ to refresh pnpm-lock.yaml. Both catalog entries carry the same Vite+ release (vite is the @voidzero-dev/vite-plus-core alias). For a Vite+ major, run the target release's migrator under webmap/ first, while the old lockfile is still installed (pnpm dlx --package=vite-plus@<version> vp migrate --no-interactive, per the Vite+ upgrade guide): the migrator reads the old bundled Vitest to add compatibility settings for the new one's breaking changes. Review its diff: keep the catalog, override, and lockfile changes, drop each compatibility setting the suite passes without, and decide whether an ignore entry it writes to webmap/.gitignore belongs in the root .gitignore, which owns the webmap entries (add one only for a directory the build actually creates).
  2. For Vite or maplibre-gl majors, confirm Vite's build.target stays at the WebView floor defined in AGENTS.md#tech-stack.
  3. For TypeScript majors, run pnpm run check under webmap/ and treat compiler deprecation warnings as failures in the same bump. Never adopt a pre-stable compiler preview package (e.g. a native-compiler preview) as a build dependency. A TypeScript bump cannot move Vite's build.target (Vite ignores the tsconfig target), so the WebView-floor check in step 2 stays scoped to Vite / maplibre-gl bumps. Readiness criteria: .claude/rules/webmap.md.
  4. Verify with ./gradlew assembleStableDebug — the :app:buildWebMap task runs the pnpm build as part of it.

Bulk-updating to latest versions

For routine version maintenance across the whole catalog, the project ships nl.littlerobots.version-catalog-update:

Workflow:

./gradlew versionCatalogUpdate    # apply the update to libs.versions.toml
./gradlew spotlessApply           # tidy formatting
./gradlew assembleStableDebug     # verify

Review every diff before committing. Major-version bumps still need the per-bump justification rule from .claude/rules/dependencies.md. Two project-specific gotchas:

Skill-specific anti-patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.