bmuschko/gradle-initializr

add .gitignore to the archive

musketyr opened this issue · 6 comments

it would be great if the downloaded archive contains default .gitignore file. .editorconfig would be also great.

That's a good idea. At the moment Gradle Initializr just calls off to the Gradle's init task and bundles whatever it creates into an archive. Wondering where the logic to create the files should live. I feel like it would probably be best if those files would be created by the init task in Gradle core. I am not opposed to building it into Gradle Initializr though. Would you be interested in providing a pull request?

If you can point me to some direction, where to start

The files you want don't really exist so you'd need to create them and then bundled them as part of the archive. Furthermore, the tests would have to verify the existence and expected content of those files.

This has been fixed: 939c945