| name | gradle |
| description | Gradle development knowledge for agents maintaining builds, build logic, plugins, tasks, dependencies, JVM toolchains, caches, publishing, CI, security, and upgrades. Use when working with Gradle, gradlew, build.gradle(.kts), settings.gradle(.kts), gradle.properties, init.gradle(.kts), libs.versions.toml, dependencies/dependencyInsight reports, dependency locking or verification, Gradle plugins/tasks, TestKit, Java toolchains, Maven/Ant migration, or wrapper upgrades. |
Gradle
Use this skill when Gradle owns the work: build authoring, debugging, dependency resolution, plugin/task development, performance, CI/security, ecosystem integration, or migrations.
When Not To Use This Skill
- Pure Maven-only work with no Gradle involvement.
- Application code issues that are clearly unrelated to build logic or build tooling.
- IDE-only problems unless the IDE behavior is tied to Gradle execution, Gradle JVM, toolchains, or Gradle import.
Defaults
- Use the Gradle Wrapper (
./gradlew, gradlew.bat) unless creating a wrapper for a new project.
- Read
gradle/wrapper/gradle-wrapper.properties before relying on version-sensitive behavior.
- Match the repository's DSL, project layout, plugin style, and CI entrypoints before changing examples.
- Prefer lazy APIs and configuration avoidance:
tasks.register, tasks.named, configureEach, Property, Provider, DirectoryProperty, and RegularFileProperty.
- Prefer Java toolchains over ambient
JAVA_HOME, sourceCompatibility, or targetCompatibility alone.
- Treat build logic as production code: keep changes small, model inputs/outputs, and verify with wrapper commands.
Workflow
- Classify the task by nearest owner surface.
- Inspect relevant files: wrapper properties, settings, build scripts,
gradle.properties, catalogs, build logic, included builds, lock/verification metadata, and CI files.
- Read one first-hop owner reference below. Read a second only when repository evidence crosses owner boundaries.
- Run or suggest the narrowest wrapper command that proves the owner.
- Explain the Gradle model behind the change so the build remains maintainable.
First-Hop Owner References
Keep this list coarse. Add narrow references from their owning file, not from SKILL.md.
- Read references/model-boundaries.md when the owner is unclear or the task turns on Gradle model boundaries.
- Read references/commands-and-evidence.md when choosing commands, flags, logs, reports, or failure evidence.
- Read references/wrapper-and-distributions.md when wrapper files, wrapper generation or upgrades, distribution download, checksum, retry, or installation owns the work.
- Read references/runtime-and-structure.md when the Gradle client or daemon, daemon JVM selection, Gradle user home, VFS/file watching, or init scripts own the work.
- Read references/project-topology-and-build-logic.md when settings scripts, project inclusion, multi-project builds, composite builds, build logic placement, root layout, or
init scaffolding owns the work.
- Read references/scripts-and-conventions.md when editing build scripts or reusable build logic.
- Read references/dependency-policy.md when dependency declarations, configuration roles, catalogs, platforms, version policy, or selected versions are the main surface.
- Read references/plugins-services-and-diagnostics.md when plugin shape, shared services, lifecycle-result work, Problems API diagnostics, TestKit, or task public surface is the owner.
- Read references/performance-strategy.md when improving build speed, task avoidance, configuration cache, build cache, incremental behavior, or isolated projects.
- Read references/ci-and-security.md when publishing, CI execution, credentials, dependency verification, or wrapper security is the owner.
- Read references/ecosystem-integrations.md when Gradle coordinates Android, native, frontend, IDE, Tooling API, Maven/Ant, or external tools.
- Read references/upgrade-strategy.md when changing Gradle versions, handling deprecations, or migrating build systems.
Source Use
- Use official Gradle documentation or source materials supplied by the current task for calibration when available.
- Use Gradle User Manual links for shareable citations.
- Prefer concise model rules, symptom maps, command recipes, and safe code patterns over upstream excerpts.