From 4c849cfc8ad3caffafe4c8789718166b186d8bbb Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 8 Jan 2026 00:22:45 +0000 Subject: [PATCH] Update cheatsheets --- tldr/gradle | 2 +- tldr/gradle-build | 2 +- tldr/gradle-clean | 25 +++++++++++++++++++++++++ tldr/gradle-dependencies | 25 +++++++++++++++++++++++++ tldr/gradle-dependencyinsight | 25 +++++++++++++++++++++++++ tldr/gradle-init | 29 +++++++++++++++++++++++++++++ tldr/gradle-projects | 21 +++++++++++++++++++++ tldr/gradle-properties | 25 +++++++++++++++++++++++++ tldr/gradle-tasks | 25 +++++++++++++++++++++++++ tldr/gradle-test | 29 +++++++++++++++++++++++++++++ tldr/gradle-wrapper | 25 +++++++++++++++++++++++++ tldr/windows/set-clipboard | 4 ++-- 12 files changed, 233 insertions(+), 4 deletions(-) create mode 100644 tldr/gradle-clean create mode 100644 tldr/gradle-dependencies create mode 100644 tldr/gradle-dependencyinsight create mode 100644 tldr/gradle-init create mode 100644 tldr/gradle-projects create mode 100644 tldr/gradle-properties create mode 100644 tldr/gradle-tasks create mode 100644 tldr/gradle-test create mode 100644 tldr/gradle-wrapper diff --git a/tldr/gradle b/tldr/gradle index 6c90b490..d3eb115f 100644 --- a/tldr/gradle +++ b/tldr/gradle @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Exclude test task: -`gradle build {{[-x|--exclude-task]}} {{test}}` +`gradle build {{[-x|--exclude-task]}} test` - Run in offline mode to prevent Gradle from accessing the network during builds: diff --git a/tldr/gradle-build b/tldr/gradle-build index 8b06bcbf..30f8abf6 100644 --- a/tldr/gradle-build +++ b/tldr/gradle-build @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gradle build > Build a project using Gradle. -> More information: . +> More information: . - Build the project: diff --git a/tldr/gradle-clean b/tldr/gradle-clean new file mode 100644 index 00000000..de0cd6fc --- /dev/null +++ b/tldr/gradle-clean @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle clean + +> Delete the build directory and all generated files. +> More information: . + +- Clean the build directory: + +`gradle clean` + +- Clean and then build the project: + +`gradle clean build` + +- Clean a specific subproject in a multi-project build: + +`gradle :{{subproject}}:clean` + +- Clean with more detailed logging: + +`gradle clean {{[-i|--info]}}` diff --git a/tldr/gradle-dependencies b/tldr/gradle-dependencies new file mode 100644 index 00000000..91f35f59 --- /dev/null +++ b/tldr/gradle-dependencies @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle dependencies + +> Display the dependency tree for a Gradle project. +> More information: . + +- Display all dependencies: + +`gradle dependencies` + +- Display dependencies for a specific configuration: + +`gradle dependencies --configuration {{implementation}}` + +- Display dependencies for a specific subproject: + +`gradle :{{subproject}}:dependencies` + +- Display dependencies and save to a file: + +`gradle dependencies > {{path/to/dependencies.txt}}` diff --git a/tldr/gradle-dependencyinsight b/tldr/gradle-dependencyinsight new file mode 100644 index 00000000..8f7b7875 --- /dev/null +++ b/tldr/gradle-dependencyinsight @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle dependencyInsight + +> Display insight into a specific dependency in a Gradle project. +> More information: . + +- Show insight for a specific dependency: + +`gradle dependencyInsight --dependency {{package_name}}` + +- Show insight for a dependency in a specific configuration: + +`gradle dependencyInsight --dependency {{package_name}} --configuration {{configuration_name}}` + +- Show insight for a specific subproject: + +`gradle :{{subproject}}:dependencyInsight --dependency {{package_name}}` + +- Show insight with the full dependency path: + +`gradle dependencyInsight --dependency {{package_name}} {{[-i|--info]}}` diff --git a/tldr/gradle-init b/tldr/gradle-init new file mode 100644 index 00000000..a3cae60b --- /dev/null +++ b/tldr/gradle-init @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle init + +> Initialize a new Gradle project interactively. +> More information: . + +- Initialize a new Gradle project interactively: + +`gradle init` + +- Initialize a project of a specific type: + +`gradle init --type {{basic|java-application|java-library|...}}` + +- Initialize a project with a specific DSL: + +`gradle init --dsl {{groovy|kotlin}}` + +- Initialize a project with a specific test framework: + +`gradle init --test-framework {{junit-jupiter|testng|spock}}` + +- Initialize a project without interactive prompts: + +`gradle init --type {{java-application}} --dsl {{kotlin}} --test-framework {{junit-jupiter}}` diff --git a/tldr/gradle-projects b/tldr/gradle-projects new file mode 100644 index 00000000..05a517e7 --- /dev/null +++ b/tldr/gradle-projects @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle projects + +> Display the sub-projects of a Gradle project. +> More information: . + +- Display all sub-projects: + +`gradle projects` + +- Display sub-projects with their descriptions: + +`gradle projects {{[-i|--info]}}` + +- Display sub-projects of a specific project in a multi-project build: + +`gradle :{{subproject}}:projects` diff --git a/tldr/gradle-properties b/tldr/gradle-properties new file mode 100644 index 00000000..eecc5577 --- /dev/null +++ b/tldr/gradle-properties @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle properties + +> Display the properties of a Gradle project. +> More information: . + +- Display all project properties: + +`gradle properties` + +- Display properties with detailed output: + +`gradle properties {{[-i|--info]}}` + +- Display properties for a specific subproject: + +`gradle :{{subproject}}:properties` + +- Display a specific property value: + +`gradle properties | grep {{property_name}}` diff --git a/tldr/gradle-tasks b/tldr/gradle-tasks new file mode 100644 index 00000000..c9fedc09 --- /dev/null +++ b/tldr/gradle-tasks @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle tasks + +> List available tasks in a Gradle project. +> More information: . + +- List the main tasks: + +`gradle tasks` + +- List all tasks including subtasks: + +`gradle tasks --all` + +- List tasks in a specific group: + +`gradle tasks --group {{group_name}}` + +- List tasks for a specific subproject: + +`gradle :{{subproject}}:tasks` diff --git a/tldr/gradle-test b/tldr/gradle-test new file mode 100644 index 00000000..4b9bd0ca --- /dev/null +++ b/tldr/gradle-test @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle test + +> Run tests using Gradle. +> More information: . + +- Run all tests: + +`gradle test` + +- Run tests with detailed output: + +`gradle test {{[-i|--info]}}` + +- Run a specific test class: + +`gradle test --tests {{class_name}}` + +- Run tests matching a pattern: + +`gradle test --tests "{{pattern}}"` + +- Rerun tests even if up-to-date: + +`gradle test --rerun` diff --git a/tldr/gradle-wrapper b/tldr/gradle-wrapper new file mode 100644 index 00000000..935ba344 --- /dev/null +++ b/tldr/gradle-wrapper @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gradle wrapper + +> Generate the Gradle wrapper files for a project. +> More information: . + +- Generate wrapper with the current Gradle version: + +`gradle wrapper` + +- Generate wrapper with a specific Gradle version: + +`gradle wrapper --gradle-version {{8.5}}` + +- Generate wrapper with a specific distribution type: + +`gradle wrapper --distribution-type {{bin|all}}` + +- Generate wrapper using a specific distribution URL: + +`gradle wrapper --gradle-distribution-url {{url}}` diff --git a/tldr/windows/set-clipboard b/tldr/windows/set-clipboard index d5401cbe..daa6422a 100644 --- a/tldr/windows/set-clipboard +++ b/tldr/windows/set-clipboard @@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git - Copy files or directories to clipboard: -`Set-Clipboard -Path "{{path/to/files_or_directories}}"` +`Set-Clipboard -Path "{{path o iles_or_directories}}"` - Copy multiple files: -`Set-Clipboard -Path "{{path/to/file1}}","{{path/to/file2}}","{{path/to/file3}}"` +`Set-Clipboard -Path "{{path o ile1}}","{{path o ile2}}","{{path o ile3}}"` - Clear the clipboard: