Answer the question
In order to leave comments, you need to log in
How to add gradle and maven to Idea?
Please tell me how to add gradle in idea to a project with java or kotlin? I don’t find any buttons about gradle anywhere, there is only maven. I also saw a project template there - gradle, but firstly it requires you to specify some groupId, artifactId, version - I suspect that this is not what you need, and secondly it creates an empty project and I don't understand how to add source files to it code. There is no "add java file" button in the menu. :(
PS Well, or at least maven. By the way, it’s also not clear. There is some kind of menu on the side about maven, but there, when you click on the green plus sign, a file selection window for some reason just opens ... But how to add that the pom.xml itself is not clear...
Answer the question
In order to leave comments, you need to log in
If we are still talking about adding to Intellij IDEA itself, and not specifically to an existing project, then everything is quite simple:
1) First of all, both Gradle and Maven need to be installed on the PC (off.instructions for gradle and maven , Russian-language versions are easily googled) .
2) Then you need to activate the appropriate plugins in the IDE settings, they are directly called: Maven integration and Gradle.
3) In the settings items that appear (Settings > Build, Execution, Deployment > Build Tools > ...), enter the paths.
In principle, if at the first stage there were no fakups, then everything should work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question