Gradle Operations TODEPLETE: Difference between revisions
Line 13: | Line 13: | ||
The full graph of the project's [[Gradle_Concepts#Dependency|dependencies]] can be rendered. The selection reason and origin for a dependency can also be displayed. | The full graph of the project's [[Gradle_Concepts#Dependency|dependencies]] can be rendered. The selection reason and origin for a dependency can also be displayed. | ||
To display the dependency trees for all [[Gradle_Concepts#Dependency_Configuration|dependency configurations]] of the project, execute: | |||
gradle -q dependencies | |||
The result is called a ''dependency report''. Any dependency that could not be resolved is marked with FAILED in red color. Dependencies with the same coordinates that can occur multiple times in the graph are omitted and indicated by an asterisk. Dependencies that had to undergo conflict resolution render the requested and selected version separated by a right arrow character. | |||
To display the dependency tree for just one [[Gradle_Concepts#Dependency_Configuration|dependency configuration]]: | |||
gradle -q dependencies --configuration <configuration-name> | |||
<font color=darkgray>Inspect the [[Gradle_Concepts#Transitive_Dependency|transitive dependency graph]]. TODO https://docs.gradle.org/current/userguide/inspecting_dependencies.html</font> | <font color=darkgray>Inspect the [[Gradle_Concepts#Transitive_Dependency|transitive dependency graph]]. TODO https://docs.gradle.org/current/userguide/inspecting_dependencies.html</font> |
Revision as of 00:52, 8 May 2018
Internal
Overview
Operations
Inspect Dependencies
The full graph of the project's dependencies can be rendered. The selection reason and origin for a dependency can also be displayed.
To display the dependency trees for all dependency configurations of the project, execute:
gradle -q dependencies
The result is called a dependency report. Any dependency that could not be resolved is marked with FAILED in red color. Dependencies with the same coordinates that can occur multiple times in the graph are omitted and indicated by an asterisk. Dependencies that had to undergo conflict resolution render the requested and selected version separated by a right arrow character.
To display the dependency tree for just one dependency configuration:
gradle -q dependencies --configuration <configuration-name>
Inspect the transitive dependency graph. TODO https://docs.gradle.org/current/userguide/inspecting_dependencies.html
Command-Line Interface
Tasks
build
Build without tests:
gradle build -x test gradle build -x :some-project:test
projects
gradle projects
tasks
gradle <project-path>:tasks
gradle :module1:tasks
properties
Displays project properties, properties added by various plugins and their default values.
gradle properties