Compiling your project
To compile your project, run a classic Gradle build. By default this creates a debug version of your code.
Using the Godot editor:

Warning
On Linux or macOS you may receive an error when trying to build the project from the Godot editor (This can happen if you created your project via the IntelliJ template).
1 2 | |
In such case, open up the terminal and change the permissions of the gradlew file to be executable.
1 | |
Using your IDE:

Using command-line:
1 | |
1 | |
Targets
We have two targets: debug and release.
In order to build in release, use the dedicated buildRelease task or add release parameter to your Gradle build command.
Example:
1 2 | |
1 2 | |
Using debug builds is recommended when developing. It adds some sanity checks that are cut off in release.
Release builds are recommended when distributing to retail.