AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Java Gradle

skill-linlannet-agent-skills-java-gradle · by linlannet

Master Gradle - Kotlin DSL, task configuration, build optimization, caching

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-linlannet-agent-skills-java-gradle

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution Used
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-linlannet-agent-skills-java-gradle)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Java Gradle? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Java Gradle 技能

掌握使用Kotlin DSL的Gradle构建工具,用于Java项目。

概述

此技能涵盖使用Kotlin DSL的Gradle配置,包括任务配置、使用目录管理依赖、构建缓存优化和CI/CD集成。

何时使用此技能

当您需要:

  • 配置Gradle构建(Kotlin DSL)
  • 使用目录管理依赖
  • 优化构建性能
  • 设置构建缓存
  • 创建自定义任务

快速参考

// 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 {
    options.compilerArgs.addAll(listOf("-parameters", "-Xlint:all"))
    options.isFork = true
    options.isIncremental = true
}

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

版本目录

# 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" }

有用的命令

gradle dependencies              # 查看依赖
gradle dependencyInsight --dependency log4j  # 分析依赖
gradle build --scan              # 构建扫描
gradle build --build-cache       # 使用缓存
gradle wrapper --gradle-version 8.5  # 更新包装器

构建优化

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

// 启用并行和缓存
org.gradle.parallel=true
org.gradle.caching=true

故障排除

| 问题 | 解决方案 | |------|----------| | 构建缓慢 | 启用 --build-cache | | 版本冲突 | 使用 platform() 或 constraints | | 缓存问题 | gradle --refresh-dependencies |

使用

Skill("java-gradle")

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.