This screen capture demonstration video shows you how to set up a Gradle project in IntelliJ starting from scratch.
Mac OS Ventura 13.0.1
IntelliJ IDEA 2021.2.2 Community Edition
Setting Up a Gradle Project in IntelliJ
-----------------------------------------------------------
1. Choose "New Project"
2. Choose "Gradle" from left-hand menu
3. Choose project SDK (double-check for compatibility) [Next]
4. Enter name of project
5. Edit Artifact Coordinates [Finish]
Tour of Gradle GUI
------------------------------
6. Examine structure of project on left: main + test subfolders
7. Expand "Gradle" folder
8. Expand "External Libraries"
9. Read Gradle build file
10. Open Gradle window (bottom, left icon)
11. Expand "Tasks" and "Dependencies"
12. Expand "Dependencies" sub-folder(s)
13. Expand "Build" sub-folder
14. Select "Clean" task
Adding an External Dependency
--------------------------------------------------
15. Highlight dependencies left/right bracket
16. Enter Cmd + N or Alt + Insert
17. Select "Add Maven Artifact Dependency"
18. Search for "log4j-core"
19. Tab into the list of results and schoose "org.apache.loging.log4j;log4j-codre:2.14.0"
20. Press the refresh Gradle icon in top-richt
21. Look at updated dependency list
22. Add "Hello Gradle World!" program and then build