Skip to content

The @nx/gradle plugin provides various executors to help you create and configure gradle projects within your Nx workspace. Below is a complete reference for all available executors and their options.

gradle

The Gradle Impl executor is used to run Gradle tasks.

Options

OptionTypeDescriptionDefault
taskNamestring [required]The name of the Gradle task to run.
__unparsed__arrayAdditional arguments to pass to the gradle command (automatically populated by Nx).
argsstringThe arguments to pass to the Gradle task.
excludeDependsOnbooleanIf true, the tasks will not execute its dependsOn tasks (e.g. pass —exclude-task args to gradle command). If false, the task will execute its dependsOn tasks.true
testClassNamestringThe full test name to run for test task (package name and class name).