Gradle Operations

From NovaOrdis Knowledge Base
Jump to navigation Jump to search



Gradle Installation

Command Line

Gradle Command Line


Debug a Gradle Build

External Gradle Process

Gradle Process Instrumentation

Use -Dorg.gradle.debug=true. Experimented with Gradle 6.8.3.

./gradlew -Dorg.gradle.debug=true --no-daemon <task-to-debug>

Even if --no-daemon was specified, Gradle will issue a message similar to:

To honour the JVM settings for this build a single-use Daemon process will be forked. See
> Starting Daemon

and will stop there waiting for the debugger to attach. The JVM will listen on 5005.

If you need to use a Gradle daemon, the daemon JVM can also be instrumented to start in debug mode:

Gradle System Properties | org.gradle.jvmargs | Attaching a Debugger to a Gradle Daemon

IDE Configuration

TODO: IntelliJ Gradle Support | Configuring Gradle Sources

Gradle runs in IntelliJ

Edit configurations → + → Gradle

Debug a Test Executed with Gradle

Debugging Gradle Tests

Gradle Daemon Operations

Gradle Daemon Operations


Operations TODEPLETE