Runs gradle tasks via the Gradle Tooling API or by invoking gradlew.
@nx/gradle
Package reference
Here is a list of all the executors, generators and migrations available from this package.
Executors
Generators
initInternal
Initializes a Gradle project in the current workspace
Setup a CI Workflow to run Nx in CI
Migrations
21.1.x
21.0.x
20.2.x
19.4.x
change-plugin-version-0-1-0
Change dev.nx.gradle.project-graph to version 0.1.0 in build file
Change dev.nx.gradle.project-graph to version 0.1.0
Change dev.nx.gradle.project-graph to version 0.1.0 in build file
Sample Code Changes
1plugins {
2 id "dev.nx.gradle.project-graph" version "0.0.5"
3}
4
change-ciTargetName-to-ciTestTargetName
Change @nx/gradle option from ciTargetName to ciTestTargetName
Change @nx/gradle plugin option ciTargetName to ciTestTargetName
Change @nx/gradle plugin option ciTargetName to ciTestTargetName in nx.json
Sample Code Changes
1{
2 "plugins": [
3 "plugin": "@nx/gradle",
4 "options": {
5 "ciTargetName": "ci"
6 }
7 ]
8}
9
change-plugin-to-v1
Change @nx/gradle plugin to version 1
Change @nx/gradle plugin to @nx/gradle/plugin-v1
Change @nx/gradle plugin to version 1 in nx.json
Sample Code Changes
1{
2 "plugins": ["@nx/gradle"]
3}
4
add-include-subprojects-tasks
Add includeSubprojectsTasks to build.gradle file
Add includeSubprojectsTasks to @nx/gradle Plugin Options
Add includeSubprojectsTasks to @nx/gradle plugin options in nx.json file
Sample Code Changes
1{
2 "plugins": ["@nx/gradle"]
3}
4
change-regex-production-test
This function changes !{projectRoot}/test/**/* in nx.json for production to !{projectRoot}/src/test/**/*
add-project-report-all
Add task projectReportAll to build.gradle file