بنقرة واحدة
java-gradle
Master Gradle - Kotlin DSL, task configuration, build optimization, caching
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Master Gradle - Kotlin DSL, task configuration, build optimization, caching
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | java-gradle |
| description | Master Gradle - Kotlin DSL, task configuration, build optimization, caching |
| sasmp_version | 1.3.0 |
| version | 3.0.0 |
| bonded_agent | 05-java-build-tools |
| bond_type | SECONDARY_BOND |
| allowed-tools | Read, Write, Bash, Glob, Grep |
| parameters | {"dsl":{"type":"string","enum":["kotlin","groovy"],"default":"kotlin","description":"Gradle DSL preference"}} |
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")
Master Java concurrency - threads, executors, locks, CompletableFuture, virtual threads
Containerize Java applications - Dockerfile optimization, JVM settings, security
Master core Java programming - syntax, OOP, collections, streams, and exception handling
Master JPA/Hibernate - entity design, queries, transactions, performance optimization
Master Maven and Gradle - build configuration, dependencies, plugins, CI/CD
Master Apache Maven - POM configuration, plugins, lifecycle, dependency management