Skip to content

Instantly share code, notes, and snippets.

@wb-towa
Forked from dedunumax/.gitignore Java
Last active May 10, 2020 19:59
Show Gist options
  • Save wb-towa/e5c5b287e88fa5fdac508285904b1544 to your computer and use it in GitHub Desktop.
Save wb-towa/e5c5b287e88fa5fdac508285904b1544 to your computer and use it in GitHub Desktop.
A complete .gitignore file for Java - https://www.dedunu.info/2014/11/gitignore-file-for-java.html
##############################
## Java
##############################
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# BlueJ files
*.ctxt
##############################
## General
##############################
*.log
.DS_Store
##############################
## Package Files
##############################
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
##############################
## Maven
##############################
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
pom.xml.bak
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar
##############################
## Gradle
##############################
bin/
build/
.gradle
.gradletasknamecache
# Ignore Gradle GUI config
gradle-app.setting
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
##############################
## IntelliJ
##############################
out/
.idea/
.idea_modules/
*.iml
*.ipr
*.iws
##############################
## Eclipse
##############################
.settings/
bin/
tmp/
.metadata
.classpath
.project
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
.factorypath
##############################
## NetBeans
##############################
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
##############################
## Visual Studio Code
##############################
.vscode/
*.code-workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment