Setup Java Gitignore
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Create or update the root .gitignore for a JVM project (Java or Kotlin, Maven or Gradle, plain, Spring Boot or
Quarkus), 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 an explicit Update / Keep / Replace decision first.
Purpose
iru-setup-java-gitignore composes a JVM-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/, with the wrapper jar kept tracked and source packages named build or
target protected), Kotlin compiler caches (.kotlin/), Quarkus leftovers (.quarkus/, quarkus.log*, a stray
jacoco.exec), the .integration-test.lock/ directory used to serialize container-backed test runs, 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. The skill announces whether it is
creating .gitignore from scratch or updating an existing one. If .gitignore already exists, it is treated as
sensitive: the skill reads it, warns, merges rather than duplicates, shows the user a diff, and asks whether to
Update (merge, keeping hand-added entries), Keep it as is, or Replace it with the pure template (hand-added entries
lost) — unless on-existing already decides.
Plugin
Shipped by the iru-java plugin of the ai-catalog marketplace (install with /plugin install iru-java@ai-catalog; see Plugins).
Invocation
/iru-setup-java-gitignore
Optionally with an args block carrying on-existing for scripted runs.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
|
No |
|
|
(everything else) |
No |
The skill derives everything else it needs by exploring the target repository directly (presence of
|
Not applicable. |
Outputs
-
A
.gitignorefile at the repository root — newly created, updated, or replaced, or left untouched when Keep is chosen. -
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 user chooses Update (write the merged draft), Keep as is (no change), or Replace (write the pure-template version), unlesson-existingdecides. -
A closing report stating whether the file was created, updated, replaced, or kept as is (and whether that came from the user or
on-existing), which conditional sections (build tool, Kotlin, Quarkus, integration-test lock, IDE, build-info file, Antora build output) were included versus skipped and why, the hand-added lines dropped by Replace, and the template entries still missing after Keep.
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(or onlyon-existing, when the orchestrator received it) — it derives everything else by exploring the repository directly. For an existing.gitignoreit asks Update / Keep / Replace itself. -
Setup Java Spring Boot — Step 9, root .gitignore.
-
Setup Quarkus Repository — Step 5, root .gitignore, via the
iru-isolated-skill-executoragent.
Source
SKILL.md on GitHub — the file this page was generated from.