Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggestions for Grails .gitignore

Tags:

git

grails

So far i've collected the following:

 *.iws *.war .classpath .DS_Store .project .settings /*.launch /*.tmproj /out/** stacktrace.log test/reports 

Any other suggestions?

like image 911
James Allman Avatar asked Jan 22 '09 21:01

James Allman


People also ask

Should gradle files be in Gitignore?

Gradle compiles java files and generates class files in the target folder.so These files add to gitignore. The archive files created by the final application are in the jar, ear, and war formats. The following entries add to the gitignore file for package-related files.

Should I include Gitignore in repo?

You should not use . gitignore files within the repository to ignore files that only appear for you, such as editor-specific swap files. You should be placing those rules in a global . gitignore file so that they apply to all repositories, or in .


1 Answers

You can have the .gitignore file automatically generated by Grails using the following command:

grails integrate-with  --git 

Grails 2.1.0 generated the following file content on my machine:

*.iws *Db.properties *Db.script .settings stacktrace.log /*.zip /plugin.xml /*.log /*DB.* /cobertura.ser .DS_Store /target/ /out/ /web-app/plugins /web-app/WEB-INF/classes 
like image 136
Dušan Rychnovský Avatar answered Sep 22 '22 00:09

Dušan Rychnovský