Gradle Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
{{Internal|Gradle_System_Properties#Attaching_a_Debugger_to_a_Gradle_Daemon|Gradle System Properties | org.gradle.jvmargs | Attaching a Debugger to a Gradle Daemon}}
{{Internal|Gradle_System_Properties#Attaching_a_Debugger_to_a_Gradle_Daemon|Gradle System Properties | org.gradle.jvmargs | Attaching a Debugger to a Gradle Daemon}}
===Gradle runs in IntelliJ===
===Gradle runs in IntelliJ===
Edit configurations → + → Gradle


==Gradle Daemon Operations==
==Gradle Daemon Operations==

Revision as of 01:46, 27 March 2021

Internal

Installation

Gradle Installation

Command Line

Gradle Command Line

Operations

Debug a Gradle Build

https://docs.gradle.org/current/userguide/troubleshooting.html#sec:troubleshooting_build_logic

External Gradle Process

IDE Configuration

https://medium.com/dan-on-coding/debugging-gradle-source-code-in-intellij-e1224bec9b6e

  • Get sources from GitHub. "Subproject" sources are available in subprojects/bootstrap/src/main/java, subprojects/launcher/src/main/java, etc.
  • A script that collects sources and builds a consolidated source JAR file is available here: https://github.com/ovidiuf/playground/blob/master/gradle/tools/build-source-jar
  • Attach them to External Libraries → gradle-api-6.2.2.jar → Right click → Open Library Settings → Right click → Edit → +

No Gradle Daemon is Used

Gradle Daemon is Used

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

Gradle runs in IntelliJ

Edit configurations → + → Gradle

Gradle Daemon Operations

Gradle Daemon Operations

TODEPLETE

Operations TODEPLETE