java-gradle

pluginagentmarketplace/custom-plugin-java · updated Apr 8, 2026

$npx skills add https://github.com/pluginagentmarketplace/custom-plugin-java --skill java-gradle
0 commentsdiscussion
summary

Master Gradle build tool with Kotlin DSL for Java projects.

skill.md

Java Gradle Skill

Master Gradle build tool with Kotlin DSL for Java projects.

Overview

This skill covers Gradle configuration with Kotlin DSL including task configuration, dependency management with catalogs, build cache optimization, and CI/CD integration.

When to Use This Skill

Use when you need to:

  • Configure Gradle builds (Kotlin DSL)
  • Manage dependencies with catalogs
  • Optimize build performance
  • Set up build cache
  • Create custom tasks

Quick Reference

// build.gradle.kts
plugins {
    java
    id("org.springframework.boot") version "3.2.1"
    id("io.spring.dependency-management") version "1.1.4"
}

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(21)
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation("org.springframework.boot:spring-boot-starter-web")
    testImplementation("org.springframework.boot:spring-boot-starter-test")
}

tasks.withType<JavaCompile> {
    options.compilerArgs.addAll(listOf("-parameters", "-Xlint:all"))
    options.isFork = true
    options.isIncremental = true
}

tasks.test {
    useJUnitPlatform()
    maxParallelForks = Runtime.getRuntime().availableProcessors() / 2
}

Version Catalog

# gradle/libs.versions.toml
[versions]
spring-boot = "3.2.1"

[libraries]
spring-boot-web = { module = "org.springframework.boot:spring-boot-starter-web", version.ref = "spring-boot" }

[plugins]
spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" }

Useful Commands

gradle dependencies              # View dependencies
gradle dependencyInsight --dependency log4j  # Analyze dep
gradle build --scan              # Build scan
gradle build --build-cache       # Use cache
gradle wrapper --gradle-version 8.5  # Update wrapper

Build Optimization

// settings.gradle.kts
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")

// Enable parallel and caching
org.gradle.parallel=true
org.gradle.caching=true

Troubleshooting

Problem Solution
Slow builds Enable --build-cache
Version conflict Use platform() or constraints
Cache issues gradle --refresh-dependencies

Usage

Skill("java-gradle")

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.728 reviews
  • Evelyn Srinivasan· Dec 24, 2024

    Solid pick for teams standardizing on skills: java-gradle is focused, and the summary matches what you get after install.

  • Shikha Mishra· Dec 8, 2024

    java-gradle has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Rahul Santra· Nov 27, 2024

    java-gradle reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Jin Diallo· Nov 15, 2024

    I recommend java-gradle for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Pratham Ware· Oct 18, 2024

    We added java-gradle from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Camila Shah· Oct 6, 2024

    Keeps context tight: java-gradle is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Michael Sharma· Sep 13, 2024

    We added java-gradle from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Meera Martinez· Sep 9, 2024

    Solid pick for teams standardizing on skills: java-gradle is focused, and the summary matches what you get after install.

  • Mei Yang· Aug 28, 2024

    java-gradle is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Diego Park· Aug 4, 2024

    java-gradle reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 28

1 / 3