https://kotlinlang.org logo
#getting-started
Title
# getting-started
w

Wouter De Vos

10/13/2023, 9:28 AM
Hey there! I am using IntelliJ IDEA 2023.2.3 and I am simply trying to add project files to an existing Gitlab repository with a single .md file in it. It's very easy to create a new Kotlin project with everything you need but I am struggling to figure out how one goes about adding project files to an empty project. Do I have to do it all manually?
not kotlin but kotlin colored 1
c

CLOVIS

10/13/2023, 10:13 AM
What kind of file do you want to add?
w

Wouter De Vos

10/13/2023, 10:15 AM
I want to add a Kotlin project using gradle as you would normally do when using the new project wizard
c

CLOVIS

10/13/2023, 10:19 AM
Use the new project wizard and select that directory
w

Wouter De Vos

10/13/2023, 10:28 AM
IntelliJ doesn't allow you to do that. It only lets you add a nested project into the current directory. The only way I can do this is by copy and pasting the files from another project into the other project.
j

Joffrey

10/13/2023, 12:10 PM
From my experience, the wizard never generates up-to-date contents, so I never use it. Moreover, there are likely files that are only relevant at the top-level (e.g. gitattributes, gitignore, settings.gradle.kts, the gradle wrapper dir, etc.), and thus wouldn't be relevant for a sub-project of an existing project. (EDIT: sorry I missed the fact that your project is currently empty and you would like to generate top-level stuff). What's the list of files you're actually interested in generating?
🐛 1
youtrack 1
w

Wouter De Vos

10/13/2023, 1:02 PM
I just wanted to generate the top level files without having to do it manually