-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
146 lines (120 loc) · 8.96 KB
/
Copy path.gitignore
File metadata and controls
146 lines (120 loc) · 8.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# ══════════════════════════════════════════════════════════════════════════════
# .gitignore — Java 21 / Maven / IntelliJ IDEA / macOS
#
# PURPOSE:
# Tells Git which files and folders to NEVER track.
# Rule of thumb: ignore anything that is GENERATED (can be rebuilt) or
# PERSONAL (specific to your machine/IDE setup) or SENSITIVE (secrets/tokens).
#
# HOW IT WORKS:
# - Each line is a pattern. A leading "/" anchors it to the repo root.
# - A trailing "/" means "this directory and everything inside it".
# - "*" matches anything within a single directory level.
# - "**" matches across directory levels.
# - A leading "!" un-ignores a previously ignored pattern.
# ══════════════════════════════════════════════════════════════════════════════
# ──────────────────────────────────────────────────────────────────────────────
# MAVEN BUILD OUTPUT
# Maven compiles sources into target/ and writes all build artefacts there.
# This folder is always regenerated by "mvn compile" or "mvn test" — never
# commit it. It can be hundreds of MB in larger projects.
# ──────────────────────────────────────────────────────────────────────────────
target/
# Maven wrapper cache (downloaded Maven distribution — regenerated automatically)
.mvn/wrapper/maven-wrapper.jar
# ──────────────────────────────────────────────────────────────────────────────
# JAVA COMPILED ARTEFACTS
# .class files are bytecode produced by the Java compiler.
# .jar/.war/.ear are packaged artefacts — all regenerated by Maven.
# ──────────────────────────────────────────────────────────────────────────────
*.class
*.jar
*.war
*.ear
*.nar
# ──────────────────────────────────────────────────────────────────────────────
# INTELLIJ IDEA
# .idea/ is the project configuration directory created by IntelliJ.
# Most of it is personal (window layout, local paths, recent files) and
# machine-specific — sharing it causes conflicts between team members.
#
# EXCEPTION: .idea/runConfigurations/ can be committed if your team wants to
# share run/debug configurations. Un-ignore it by adding:
# !.idea/runConfigurations/
# ──────────────────────────────────────────────────────────────────────────────
.idea/
# Module files — IntelliJ generates one per Maven module; always regenerated
*.iml
*.ipr
*.iws
# IntelliJ "out" folder (alternative to target/ in some configurations)
out/
# ──────────────────────────────────────────────────────────────────────────────
# LOGS
# Log files produced at runtime — never part of source code.
# ──────────────────────────────────────────────────────────────────────────────
*.log
*.log.*
logs/
# ──────────────────────────────────────────────────────────────────────────────
# ENVIRONMENT & SECRETS ← CRITICAL: never commit these
# .env files often contain API keys, DB passwords, and tokens.
# If you accidentally commit a secret, it stays in git history forever —
# even after deletion. Rotate the secret immediately if this happens.
# ──────────────────────────────────────────────────────────────────────────────
.env
.env.*
*.env
!.env.example # allow a .env.example template (with no real values) to be committed
# ──────────────────────────────────────────────────────────────────────────────
# macOS SYSTEM FILES
# .DS_Store is created automatically by macOS Finder in every folder it opens.
# Committing these pollutes the repository with files that have no meaning
# on Linux or Windows.
# ──────────────────────────────────────────────────────────────────────────────
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
# ──────────────────────────────────────────────────────────────────────────────
# WINDOWS SYSTEM FILES
# Included so the repo stays clean when Windows users contribute.
# ──────────────────────────────────────────────────────────────────────────────
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
# ──────────────────────────────────────────────────────────────────────────────
# TEST & COVERAGE REPORTS
# Generated by Maven Surefire (unit tests) and JaCoCo (code coverage).
# Always regenerated by "mvn test" — no need to commit.
# ──────────────────────────────────────────────────────────────────────────────
# Surefire XML/TXT reports (already under target/ but explicit for clarity)
**/surefire-reports/
# JaCoCo coverage data and HTML report
jacoco.exec
**/jacoco/
# ──────────────────────────────────────────────────────────────────────────────
# TEMPORARY & EDITOR SWAP FILES
# Created by editors like Vim or Emacs while a file is open.
# ──────────────────────────────────────────────────────────────────────────────
*.swp
*.swo
*~
*.tmp
*.bak
# ──────────────────────────────────────────────────────────────────────────────
# PATCH FILES
# Diffs/patches generated by git or diff tools — typically local work products.
# ──────────────────────────────────────────────────────────────────────────────
*.patch
*.diff
# ──────────────────────────────────────────────────────────────────────────────
# VS CODE (if other contributors use it alongside IntelliJ)
# .vscode/ contains workspace settings, extensions list, and launch configs.
# These are personal — share them via a separate .vscode/settings.json.example
# if needed, but not the live files.
# ──────────────────────────────────────────────────────────────────────────────
.vscode/
!.vscode/extensions.json # allow sharing recommended extensions list