/gradle:gradlefrom gradle
Diagnoses and writes Gradle build logic: configuration cache failures, "Could not resolve" and no matching variant errors, dependencyInsight, build cache misses, Kotlin DSL scripts, libs.versions.toml catalogs, convention plugins in build-logic, toolchains. Use for "Task.project at execution time is unsupported", "Configuration cache problems found in this build", "Unresolved reference: libs", or a request to add a task, dependency or convention plugin to a *.gradle.kts file.
Ships in gradle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fix the cause the build reports and keep its observable outputs (task names, artifacts, dependency versions) unless the request changes them.
Not for: audits and "check my build" requests (gradle-skills:gradle-best-practices), wrapper upgrades (gradle-skills:gradle-wrapper-upgrade), Maven POMs (maven), tests with no Gradle question (java-testing, kotlin-testing), Android Gradle Plugin DSL, variants, signing and release builds (android-build), and the AGP 8 → 9 migration (android-skills:agp-9-upgrade).
Verified on 2026-10-20 against docs.gradle.org: Gradle 9 runs on a JVM from 17 through 27, and the configuration cache is off by default in 9.x.
settings.gradle(.kts), the root build script, gradle.properties, gradle/wrapper/gradle-wrapper.properties, gradle/libs.versions.toml and any build-logic/ included build../gradlew, never a system gradle, so the wrapper's version is the one in use. Add --console=plain when the output is read back../gradlew :app:compileJava --stacktrace. Note whether the failure happens in configuration, in a task action or in dependency resolution; the fix differs.java.toolchain in a module picks the compiling and testing JDK; provisioning it needs auto-download or a local JDK, so check which one the build assumes..kts) for new scripts. In a Groovy repo, match the existing language.gradle/libs.versions.toml and reference it as libs.<alias>. Alias segments split on dashes, so my-lib becomes libs.my.lib. Scripts contain no version literals.build-logic (an included build), registered by id and applied per module. Do not configure plugins or tasks from subprojects {} or allprojects {}.tasks.register, never tasks.create. Read values through providers (providers.gradleProperty, providers.environmentVariable) and capture them at configuration time, not inside a task action.@Input, @InputFiles, @OutputDirectory (or the Property equivalents) on custom task classes so up-to-date checks and the build cache work../gradlew help configures without problems and the touched task runs.build/reports/configuration-cache/../gradlew :<module>:dependencyInsight --configuration <name> --dependency <group:artifact>.Before any build with a scan, ask the user first: --scan uploads build data to a server. Run without it otherwise.
settings.gradle(.kts) and name the root project. Give plugin versions in pluginManagement or the root's plugins {} with apply false, and apply them in the modules that use them.includeBuild("build-logic") in settings.gradle(.kts) for convention plugins, and give each plugin an id under the repo's own namespace.java-library module (api and implementation) and an application module before adding dependencies. Check which the module already applies../gradlew projects and the convention plugin applies to each one that needs it.org.gradle.caching=true in gradle.properties only if the team already uses it or asks. Remote cache credentials never go in the repo; read them from the environment or a user-level file.@CacheableTask and its outputs are reproducible. Mark custom tasks that embed timestamps or absolute paths as not cacheable, or fix the inputs.--profile writes an HTML report to build/reports/profile/. Read it before changing parallelism or memory settings. Do not raise org.gradle.jvmargs heap size as a first step.org.gradle.parallel=true only after checking that tasks in the build do not share mutable output directories.Task.project at execution time is the most common configuration cache failure. A doLast or doFirst block that reads project fails only when the cache is on, so a build can pass without the cache and fail with it.providers.provider { project.version } does not fix it. The lambda runs when the action calls .get(), which is execution time. Read the value into a val inside the register block, outside the action.implementation keeps a dependency off consumers' compile classpaths; api leaks it. Choose by whether the type appears in the module's public signatures.resolutionStrategy.force overrides every path silently. Prefer a platform (BOM) or a constraint, and say why when you use force.plugins {} block to declare apply false at the root.gradle.properties values are read at configuration; a -P flag changes them only for that invocation.buildSrc/ still works. For new shared build logic, prefer an included build in build-logic/.compile, testCompile and runtime configurations were removed in Gradle 7; use implementation, testImplementation and runtimeOnly.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin gradle