Will I loose all my build settings if I re-import ...
# intellij
m
Will I loose all my build settings if I re-import my project from the gradle files, in IntelliJ IDEA?
w
What do you mean by build settings?
Anyway you can always copy the project folder to anoter temporary directory, run
git clean -fxd
to clean all non-tracked files, and import it in IJ and check 🙂 As it is Gradle files (or Gradle itself) don’t store any IJ-specific stuff like run configurations, dictionaries, codestyle settings etc.
Those are stored in various files in
.idea/
folder in the project, and if you want to share those settings you’d need to share their respective files. Not everything is intended for sharing, though
And just a side note, there’s even an issue to better separate shareable and non-shareable config files https://youtrack.jetbrains.com/issue/IDEA-90785
m
Thanks, @wasyl. My project is not under git. And I don't see the "import" command anywhere in this version of IDEA. So I'm stuck with a non working project.
And I can't delete modules from the project structure, because "delete" and "-" don't have any effect.
w
If you want to import a Gradle project the best way I know is to open
settings.gradle
file. IJ will ask if you want to open it as file or as project, choose as project
m
It just re-opens the same project. I need to re-import the gradle files. There was a command for that, in past, that was a life saver, because IDEA very often messes everything up when adding and removing modules. Now I can't even re-import the project from gradle.
I know this is now the appropriate forum, but I'm trying to use the IntelliJ discord and... it won't let me enter my birthdate.
w
the naming changed couple of times, it used to be
sync with gradle files
later on
re-import project
I think?
m
Yes, that was the command. I can't find it even with "Find action...". I managed to enter the discord server. I'll attempt to get help there. Thanks, for trying to assist me, @wasyl
👍 1