Skip to main content
Alison Aquinas logoAlison's LLM Skills Marketplace

gradle

Included in skill bundleci-cdView on GitHub ↗

Files

SKILL.mdagentsreferences

Install

Install only this skill with npx skills
npx skills add alisonaquinas/llm-ci-dev --skill 'gradle' -g -y
Install the containing skill bundle
/plugin install ci-cd@llm-skills
Download gradle-skill.zip
This skill is bundled inside ci-cd. Use npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-ci-dev.

Invoke

Invoke this skill after installation
/ci-cd:gradle

SKILL.md


name: gradle description: Build and manage Java and Android projects with Gradle. Use when tasks mention gradle commands, build.gradle, Gradle wrapper, tasks, plugins, or Android builds.

Gradle

Intent Router

RequestReferenceLoad When
Install tool, first-time setup, Gradle wrapperreferences/install-and-setup.mdGradle needs to be installed or the ./gradlew wrapper configured
build.gradle structure, dependencies, settingsreferences/build-scripts.mdWork involves editing build scripts or adding dependencies
CLI commands, build workflowsreferences/command-cookbook.mdSpecific ./gradlew commands or flags are needed
Task definition, plugins, publishingreferences/tasks-and-plugins.mdQuestions about custom tasks or plugin configuration arise

Quick Start

# Build project (compile + test + assemble)
./gradlew build

# Run tests only
./gradlew test

# Preview tasks without executing (dry run)
./gradlew build -m

# Clean build outputs
./gradlew clean

Core Command Tracks

  • Build: ./gradlew build — compiles, tests, and assembles the project
  • Test: ./gradlew test — runs the test suite
  • Clean: ./gradlew clean — deletes build/ directory
  • Assemble: ./gradlew assemble — produces all output artifacts without running tests
  • Check: ./gradlew check — runs all verification tasks (tests, linting, etc.)
  • Dependencies: ./gradlew dependencies — displays the dependency graph
  • Tasks: ./gradlew tasks — lists all available tasks with descriptions
  • Dry run: append -m or --dry-run to preview task execution order

Safety Guardrails

  • Always use ./gradlew (the wrapper) rather than a globally installed gradle binary — this ensures the correct Gradle version is used.
  • Run ./gradlew build -m (dry run) before unfamiliar or destructive tasks to preview execution order.
  • Use --no-daemon in CI environments to avoid daemon state leaking between builds.
  • Avoid the Gradle daemon inside Docker containers — the daemon may hold file locks or consume unexpected memory.
  • Never commit secrets in gradle.properties; inject sensitive values via CI environment variables.
# Troubleshoot a failing build: check dependency conflicts and run with full stacktrace
./gradlew dependencies --configuration runtimeClasspath
./gradlew build --no-daemon --stacktrace 2>&1 | tail -30

Related Skills

  • maven — alternative JVM build tool using XML (pom.xml)
  • ci-architecture — integrating Gradle builds into CI/CD pipelines
  • aws — deploying Gradle-built artifacts to AWS services

References

← Back to marketplace