Forrest logo
back to the gradle tool

gradle:tldr:8c48a

gradle: Exclude test task.
$ gradle build -x ${test}
try on your machine

This command is using a tool called Gradle to build a project, but skipping the execution of tests.

Here is a breakdown of the command:

  • gradle: This is the command to run Gradle.
  • build: This is the task being executed. In this case, it is the build task, which compiles the source code, runs tests, and packages the project.
  • -x: This flag is used to exclude certain tasks from being executed.
  • ${test}: This is a parameter indicating which specific task to exclude. In this case, it is the test task, which typically runs automated tests for the project.

So, by including -x ${test} in the command, Gradle will skip the execution of the test task during the build process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gradle tool