Gradle Operations: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
./gradlew -Dorg.gradle.debug=true --no-daemon <task-to-debug> | ./gradlew -Dorg.gradle.debug=true --no-daemon <task-to-debug> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Even if --no-daemon was specified, Gradle will issue a message similar to: | Even if [[Gradle_Command_Line#--no-daemon|--no-daemon]] was specified, Gradle will issue a message similar to: | ||
<syntaxhighlight lang='text'> | <syntaxhighlight lang='text'> | ||
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon. | To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon. |
Revision as of 00:45, 28 March 2021
Internal
Installation
Command Line
Operations
Debug a Gradle Build
TODO: IntelliJ Gradle Support | Configuring Gradle Sources
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 https://docs.gradle.org/6.8.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
> 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:
IDE Configuration
- Get sources from GitHub. "Subproject" sources are available in subprojects/bootstrap/src/main/java, subprojects/launcher/src/main/java, etc.
- Script that collects sources and builds a consolidated source JAR file is available here:
- Attach them to External Libraries → gradle-api-6.2.2.jar → Right click → Open Library Settings → Right click → Edit → +
Gradle runs in IntelliJ
Edit configurations → + → Gradle