File | Settings | Build, Execution, Deployment | Build Tools for Windows and Linux
IntelliJ IDEA | Preferences | Build, Execution, Deployment | Build Tools for macOS
Ctrl+Alt+S images/settings.png

When you select the Build Tools category in the left-hand pane, its main subcategories are listed in the right-hand part of the dialog.