https://kotlinlang.org logo
#announcements
Title
# announcements
s

Sylvain Patenaude

10/07/2019, 7:46 PM
This is my 1st "real" Kotlin project, i.e. source code will be managed through Azure DevOps with Git. When creating a new repository from DevOps, there's a 'Add a .gitignore' field in the dialog with several options. For previous projects, we used to select "VisualStudio" because it's the IDE we used for these projects. However, for a kotlin project, would you select the obvious "kotlin" option? Or the "Gradle" option since the code will be built with it? Or some other option? Thanks in advance!
w

wasyl

10/07/2019, 7:54 PM
It depends what these default templates contain. I think
gradle
will cover more things, but also it’s not a problem to simply add stuff to gitignore once you realize something’s missing
s

Sylvain Patenaude

10/07/2019, 7:59 PM
You're right, it's not set in stone anyway. But I just wanted to have the best template going in. Gradle has probably more stuff like you said.
m

molikuner

10/08/2019, 7:45 AM
k

kmjosephs

10/08/2019, 8:35 PM
At work I used gitignore.io and combined the kotlin and android gitignores for the best coverage. I'd select the Gradle option and then augment the gitignore using gitignore.io
👌 1
s

Sylvain Patenaude

10/08/2019, 8:43 PM
Good idea. The one I got with the Gradle option is very small. I'll try gitignore.io to see what I can get.