# java-gradle

Configures Gradle Java projects using Kotlin DSL. Helps set up version catalogs, optimize build caching, and tune compiler tasks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 380 installs · ★ 41
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-java/tree/HEAD/skills/java-gradle/SKILL.md
- Updated: 2026-01-05
- HTML: https://affpapa.org/en/nevibecode/skills/java-gradle

## What it does

The skill guides the coding agent through Gradle build setups for Java projects. It prioritizes Kotlin DSL by default, but also accepts Groovy via the `dsl` parameter. It covers version catalogs in `gradle/libs.versions.toml`, Java toolchains, and plugin declarations.

Build performance settings form a central part of the instructions. The agent configures parallel test execution, incremental compilation arguments, and caching toggles. It requires filesystem and `Bash` tool permissions to inspect dependencies and update the Gradle wrapper.

Because the skill defaults strictly to Kotlin DSL, working with Groovy requires explicitly overriding the parameter upfront.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-gradle -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/java-gradle/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/java-gradle/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-gradle -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/java-gradle/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-gradle -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/java-gradle/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-java java-gradle
```

2. **Manually: put the files in place**
- File: `.github/skills/java-gradle/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-gradle -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-java --path skills/java-gradle
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/java-gradle/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-java --skill java-gradle -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-java/tree/HEAD/skills/java-gradle/SKILL.md

## When to use it
- migrate dependencies to a `libs.versions.toml` catalog
- enable build cache and parallel task execution in Gradle
- configure Java toolchains and incremental compilation flags
- resolve dependency version conflicts using constraints

## Example prompts
- Set up a `build.gradle.kts` configuration for Spring Boot using Java 21
- Extract dependencies into `gradle/libs.versions.toml` catalog
- Configure parallel testing and enable build caching

## Similar
- [gradle-run](https://affpapa.org/en/nevibecode/skills/gradle-run.md) — skill · 768 installs
- [java-development](https://affpapa.org/en/nevibecode/skills/java-development.md) — skill · 3 installs
- [java-mcp-server-generator](https://affpapa.org/en/nevibecode/skills/java-mcp-server-generator.md) — skill · 8800 installs
- [java-migration](https://affpapa.org/en/nevibecode/skills/java-migration.md) — skill · 321 installs
- [android-java](https://affpapa.org/en/nevibecode/skills/android-java.md) — skill · 667 installs
- [kotlin-tooling-gradle-to-kotlin-toolchain-project](https://affpapa.org/en/nevibecode/skills/kotlin-tooling-gradle-to-kotlin-toolchain-project.md) — skill · 426 installs

From the same set: [pluginagentmarketplace/custom-plugin-java](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-java.md) — 10 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
