Gradle Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
==Debug a Gradle Build==
==Debug a Gradle Build==
{{External|https://docs.gradle.org/current/userguide/troubleshooting.html#sec:troubleshooting_build_logic}}
{{External|https://docs.gradle.org/current/userguide/troubleshooting.html#sec:troubleshooting_build_logic}}
===IDE Configuration===
===External Gradle Process===
====IDE Configuration====
{{External|https://medium.com/dan-on-coding/debugging-gradle-source-code-in-intellij-e1224bec9b6e}}
{{External|https://medium.com/dan-on-coding/debugging-gradle-source-code-in-intellij-e1224bec9b6e}}


Line 17: Line 18:
* Attach them to External Libraries → gradle-api-6.2.2.jar → Right click → Open Library Settings → Right click → Edit → +  
* Attach them to External Libraries → gradle-api-6.2.2.jar → Right click → Open Library Settings → Right click → Edit → +  
</font>
</font>
 
====No Gradle Daemon is Used====
===No Gradle Daemon is Used===
====Gradle Daemon is Used====
===Gradle Daemon is Used===
{{Internal|Gradle_System_Properties#Attaching_a_Debugger_to_a_Gradle_Daemon|Gradle System Properties &#124; org.gradle.jvmargs &#124; Attaching a Debugger to a Gradle Daemon}}
{{Internal|Gradle_System_Properties#Attaching_a_Debugger_to_a_Gradle_Daemon|Gradle System Properties &#124; org.gradle.jvmargs &#124; Attaching a Debugger to a Gradle Daemon}}
===Gradle runs in IntelliJ===


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

Revision as of 01:42, 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

Gradle Daemon Operations

Gradle Daemon Operations

TODEPLETE

Operations TODEPLETE