@nx/gradle

Package reference

Here is a list of all the executors, generators and migrations available from this package.

Executors

  • gradle

    Runs gradle tasks via the Gradle Tooling API or by invoking gradlew.

Generators

  • initInternal

    Initializes a Gradle project in the current workspace

  • ci-workflow

    Setup a CI Workflow to run Nx in CI

Migrations

  • 21.1.x

  • change-plugin-version-0-1-0

    Change dev.nx.gradle.project-graph to version 0.1.0 in build file

    Version: 21.1.2-beta.1

    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

    build.gradle
    1plugins { 2 id "dev.nx.gradle.project-graph" version "0.0.5" 3} 4
  • 21.0.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
  • 20.2.x

  • 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
  • 19.4.x

  • 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