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.0.x
20.2.x
19.4.x
change-ciTargetName-to-ciTestTargetName
Change @nx/gradle option from ciTargetName to ciTestTargetName
Version: 21.0.0-beta.13
Change @nx/gradle plugin option ciTargetName to ciTestTargetName
Change @nx/gradle plugin option ciTargetName to ciTestTargetName in nx.json
Sample Code Changes
nx.json
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
Version: 21.0.0-beta.5
Change @nx/gradle plugin to @nx/gradle/plugin-v1
Change @nx/gradle plugin to version 1 in nx.json
Sample Code Changes
nx.json
1{
2 "plugins": ["@nx/gradle"]
3}
4
add-include-subprojects-tasks
Add includeSubprojectsTasks to build.gradle file
Version: 20.2.0-beta.4
Add includeSubprojectsTasks to @nx/gradle Plugin Options
Add includeSubprojectsTasks to @nx/gradle plugin options in nx.json file
Sample Code Changes
nx.json
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/**/*
Version: 19.4.1-beta.0
add-project-report-all
Add task projectReportAll to build.gradle file
Version: 19.4.0-beta.1