.gitignore for Play Framework
15 ignore rules for Play Framework, ready to copy into your repository.
Web framework for Java and Scala
The complete .gitignore for Play Framework
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:29:18 UTC
# Technologies: Play Framework
### Play Framework ###
# Eclipse output directory
bin/
/db
.eclipse
/lib/
/logs/
/modules
/project/project
/project/target
/target
# Temporary files directory
tmp/
test-result
server.pid
*.eml
/dist/
# Cache directory
.cache
What these Play Framework rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Ignore Play! working directory #
| Pattern | What it ignores |
|---|---|
bin/ |
Eclipse output directory |
/db |
Ignore Play! working directory # |
.eclipse |
Ignore Play! working directory # |
/lib/ |
Ignore Play! working directory # |
/logs/ |
Ignore Play! working directory # |
/modules |
Ignore Play! working directory # |
/project/project |
Ignore Play! working directory # |
/project/target |
Ignore Play! working directory # |
/target |
Ignore Play! working directory # |
tmp/ |
Temporary files directory |
test-result |
Ignore Play! working directory # |
server.pid |
Ignore Play! working directory # |
*.eml |
Ignore Play! working directory # |
/dist/ |
Ignore Play! working directory # |
.cache |
Cache directory |
How to use this .gitignore for Play Framework
- Copy the Play Framework rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.