Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Choonster
Last active April 1, 2023 01:57
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Choonster/6447037d24d0ed5898b8 to your computer and use it in GitHub Desktop.
Save Choonster/6447037d24d0ed5898b8 to your computer and use it in GitHub Desktop.
A .gitignore file suitable for developing Minecraft Forge mods using ForgeGradle.
## Based on GitHub's Eclipse .gitignore
run/
.gradle/
build/
gradle-app.setting
## IntelliJ IDEA
.idea/
*.iml
*.iws
*.ipr
## Eclipse
eclipse/
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
@Khazbs
Copy link

Khazbs commented Mar 17, 2020

With a .gitignore like this, we're gonna be tracking gradle/wrapper/gradle-wrapper.jar as well. Is this what we really want?

@Choonster
Copy link
Author

@Khazbs This is a very old Gist, I use a different format for my .gitignore files now.

That said, tracking the Gradle wrapper JAR is intentional. It's designed to be committed to source control, the wrapper shell/batch scripts don't work without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment