UNPKG

@nx/gradle

Version:

The Nx Plugin for Gradle allows Gradle tasks to be run through Nx

19 lines (18 loc) 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = update; const devkit_1 = require("@nx/devkit"); const has_gradle_plugin_1 = require("../../utils/has-gradle-plugin"); const gradle_project_graph_plugin_utils_1 = require("../../generators/init/gradle-project-graph-plugin-utils"); /* Change the plugin version to 0.1.0 */ async function update(tree) { const nxJson = (0, devkit_1.readNxJson)(tree); if (!nxJson) { return; } if (!(0, has_gradle_plugin_1.hasGradlePlugin)(tree)) { return; } await (0, gradle_project_graph_plugin_utils_1.addNxProjectGraphPlugin)(tree, '0.1.0'); }