You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like my template to go ahead and create a default .gitignore file for the new project. I added a .gitignore file to my template folder, but it doesn't show up in the template zip (and thus obviously not when I create the project from the template.
The workaround I'm using right now is to include a gignore.txt in the template zip and then in the lazybones.groovy I rename the file to .gitignore
The text was updated successfully, but these errors were encountered:
Is this an issue with the Gradle plugin? I thought it might be one of the default package exclusions, but it's not. Which means that file should be packaged.
An alternative approach is to use the scmExclusions() method in the post-install script to specify the ignore patterns. This works in combination with the --with-git command line option to create a .gitignore file and initialise a git repository.
I tested this with a very simple Gradle build and discovered that the built-in Zip task seems to ignore the .gitignore file. An arbitrary hidden file, such as .hiddenFile, is included in the zip package though. Bizarre. Possibly a bug in the Zip task.
I would like my template to go ahead and create a default .gitignore file for the new project. I added a .gitignore file to my template folder, but it doesn't show up in the template zip (and thus obviously not when I create the project from the template.
The workaround I'm using right now is to include a gignore.txt in the template zip and then in the lazybones.groovy I rename the file to .gitignore
The text was updated successfully, but these errors were encountered: