Setup Java Gitignore
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Create or refresh the root .gitignore for a Java project, using this repository’s own .gitignore as the
concrete reference template — never overwriting an existing file without showing the user exactly what would
change and getting explicit approval first.
Purpose
iru-setup-java-gitignore composes a Java-appropriate .gitignore: a universal base (compiled classes, logs,
packaged artifacts, JVM crash logs) plus conditionally-detected sections for the actual build tool (Maven
/target/ or Gradle build//.gradle/), IDE files (IntelliJ, VS Code, Eclipse), a generated build-info
properties file if a Groovy/Maven plugin writes one, and Antora documentation build output. It never invents
entries for things that aren’t actually present in the target repository. If .gitignore already exists, it
is treated as sensitive: the skill reads it, merges rather than duplicates, and shows the user a diff before
writing anything.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
(none) |
No |
This skill takes no arguments — it derives everything it needs by exploring the target repository directly
(presence of |
Not applicable. |
Outputs
-
A
.gitignorefile at the repository root — newly created, or updated after explicit user approval. -
If
.gitignoredidn’t previously exist: it is written directly, no approval step needed. -
If
.gitignorealready existed: a diff of the proposed content is shown first, and the file is only overwritten if the user explicitly accepts. -
A closing report naming which conditional sections (build tool, IDE, build-info file, Antora build output) were included versus skipped, and why.
Execution flow
Dependencies
Invokes
None — iru-setup-java-gitignore is a leaf skill; it does not call any other skill in this catalog.
Invoked by
-
Setup Java Library Repository — Step 5 runs
iru-setup-java-gitignoreafteriru-setup-java-libraryandiru-setup-antorahave run, so it can detect their generated files (the Mavenpom.xml/source layout and the Antora docs build output) already in place. It’s invoked with noargs— it derives everything by exploring the repository directly.
Source
SKILL.md on GitHub — the file this page was generated from.