IntelliJ IDEA adds a dependency to the adle file. In the list of results select the one you need and click Add.įor more information on working with the Dependencies tool window, refer to Package Search. In the Dependencies tool window, in the search field, start typing the name of your dependency.
Press Alt+Insert to open the Generate context menu.įrom the context menu, select Add dependency. Dependencies that you set up manually inside IntelliJ IDEA module settings will be discarded on the next Gradle project reload. The best way to add or manage a dependency is in the adle file. Generate Gradle dependenciesĪny dependency added to the project is managed by Gradle. You can add dependencies, and view them in the diagram. IntelliJ IDEA lets you add and manage dependencies in your Gradle project.