Search code examples
javagradleintellij-ideajetbrains-ide

A question about building a project with Gradle in IDEA


This is a question about building a project with Gradle. In Linux, I can directly go to a specific directory to execute "./gradlew"; but when I use JetBrains' IDEA on Windows, how do I use the column on the right to "cd" to a specific directory to execute" ./gradlew"?

enter image description here

I hope to get some official documentation.


Solution

  • Gradle pane ➤ Tasks

    You appear to be showing the Dependencies branch of the Gradle pane. Look for the sibling branch, Tasks, in that tree hierarchy.

    There you’ll find the Gradle commands. Double-click to execute.

    See the documentation.


    For other readers…

    IntelliJ knows how to work with Gradle.

    Open the Gradle pane within your project window.

    If no Gradle pane is available, you may have the necessary plugin disabled. Use the Settings tool to activate the Gradle plugin.

    You may choose to use the console pane within IntelliJ to execute Gradle commands on the command-line rather than through the IntelliJ GUI.