Skip to content
Back to skills

Java Tooling

ASecurity

Use a multi-stage, layered Docker build with an `eclipse-temurin` runtime image. Keep dependency resolution in an earlier layer so source changes do not invalidate it, and avoid an uber/fat jar when layered packaging is available. One practical shape is: ```dockerfile FROM eclipse-temurin:21-jdk AS build WORKDIR /workspace COPY gradlew gradle/ build.gradle.kts settings.gradle.kts ./ RUN ./gradlew dependencies --no-daemon COPY src ./src RUN ./gradlew bootJar --no-daemon FROM eclipse-temurin:21...

  • 584 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentjavaspringdocker

Works with

  • cli

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill java-tooling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Tooling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Java Tooling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-java-tooling-d9c46d9d/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-java-tooling-d9c46d9d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Use a multi-stage, layered Docker build with an `eclipse-temurin` runtime image. Keep dependency resolution in an earlier layer so source changes do not invalidate it, and avoid an uber/fat jar when layered packaging is available.

One practical shape is:

```dockerfile
FROM eclipse-temurin:21-jdk AS build
WORKDIR /workspace
COPY gradlew gradle/ build.gradle.kts settings.gradle.kts ./
RUN ./gradlew dependencies --no-daemon
COPY src ./src
RUN ./gradlew bootJar --no-daemon

FROM eclipse-temurin:21-jre
WORKDIR /app
COPY --from=build /workspace/build/libs/*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
```

Pin the Gradle wrapper and base-image/JDK versions, keep the dependency and build layers ordered for cache reuse, and use Spring Boot’s layered-jar support when extracting separate dependencies, loader, and application layers. Build and verify the image in CI so `./gradlew build` remains the reproducible source of the artifact.

Files in this skill

  • eval-1.baseline.md879 B
  • eval-1.with-skill.md652 B
  • eval-2.baseline.md900 B
  • eval-2.with-skill.md701 B
  • eval-3.baseline.md1.3 KB
  • eval-3.with-skill.md953 B
  • trigger-1.md158 B
  • trigger-10.md138 B
  • trigger-11.md144 B
  • trigger-2.md146 B
  • trigger-3.md132 B
  • trigger-4.md117 B
  • trigger-5.md130 B
  • trigger-6.md115 B
  • trigger-7.md171 B
  • trigger-8.md115 B
  • trigger-9.md113 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.