java-gradle by pluginagentmarketplace/custom-plugin-java
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-java --skill java-gradle掌握用于 Java 项目的 Kotlin DSL Gradle 构建工具。
此技能涵盖使用 Kotlin DSL 进行 Gradle 配置,包括任务配置、使用目录进行依赖管理、构建缓存优化以及 CI/CD 集成。
在需要时使用:
// 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
}
# 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" }
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
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")
每周安装次数
144
代码仓库
GitHub 星标数
27
首次出现
2026年1月21日
安全审计
安装于
opencode119
gemini-cli115
codex115
github-copilot108
cursor101
claude-code90
Master Gradle build tool with Kotlin DSL for Java projects.
This skill covers Gradle configuration with Kotlin DSL including task configuration, dependency management with catalogs, build cache optimization, and CI/CD integration.
Use when you need to:
// 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
}
# 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 # 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
// settings.gradle.kts
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
// Enable parallel and caching
org.gradle.parallel=true
org.gradle.caching=true
| Problem | Solution |
|---|---|
| Slow builds | Enable --build-cache |
| Version conflict | Use platform() or constraints |
| Cache issues | gradle --refresh-dependencies |
Skill("java-gradle")
Weekly Installs
144
Repository
GitHub Stars
27
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode119
gemini-cli115
codex115
github-copilot108
cursor101
claude-code90
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
96,200 周安装
全栈安全开发指南 - Fullstack Guardian 安全编码与三视角设计实践
1,300 周安装
CLI开发者指南:Node.js/Python/Go命令行工具开发全流程与最佳实践
1,200 周安装
Claude AI前端项目构建器:React + TypeScript + Vite + Parcel打包成单HTML文件
1,200 周安装
3D网页开发指南:Three.js、React Three Fiber与WebGL性能优化实战
1,200 周安装
AI Sprint规划器 - 敏捷团队Scrum迭代计划工具,自动估算故事点与容量管理
1,200 周安装
Sanity内容建模最佳实践:结构化内容设计原则与无头CMS指南
1,200 周安装