@nx/gradle 24.0.6 → 24.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = update;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const has_gradle_plugin_1 = require("../../utils/has-gradle-plugin");
6
+ const gradle_project_graph_plugin_utils_1 = require("../../generators/init/gradle-project-graph-plugin-utils");
7
+ const version_catalog_ast_utils_1 = require("../../utils/version-catalog-ast-utils");
8
+ /* Change the plugin version to 0.1.27
9
+ */
10
+ async function update(tree) {
11
+ const nxJson = (0, devkit_1.readNxJson)(tree);
12
+ if (!nxJson) {
13
+ return;
14
+ }
15
+ if (!(0, has_gradle_plugin_1.hasGradlePlugin)(tree)) {
16
+ return;
17
+ }
18
+ const gradlePluginVersionToUpdate = '0.1.27';
19
+ // Update version in version catalogs using AST-based approach to preserve formatting
20
+ await (0, version_catalog_ast_utils_1.updateNxPluginVersionInCatalogsAst)(tree, gradlePluginVersionToUpdate);
21
+ // Then update in build.gradle(.kts) files
22
+ await (0, gradle_project_graph_plugin_utils_1.addNxProjectGraphPlugin)(tree, gradlePluginVersionToUpdate);
23
+ }
@@ -0,0 +1,21 @@
1
+ #### Change dev.nx.gradle.project-graph to version 0.1.27
2
+
3
+ Change dev.nx.gradle.project-graph to version 0.1.27 in build file
4
+
5
+ #### Sample Code Changes
6
+
7
+ ##### Before
8
+
9
+ ```text title="build.gradle"
10
+ plugins {
11
+ id "dev.nx.gradle.project-graph" version "0.1.26"
12
+ }
13
+ ```
14
+
15
+ ##### After
16
+
17
+ ```text title="build.gradle"
18
+ plugins {
19
+ id "dev.nx.gradle.project-graph" version "0.1.27"
20
+ }
21
+ ```
@@ -1,3 +1,3 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const gradleProjectGraphPluginName = "dev.nx.gradle.project-graph";
3
- export declare const gradleProjectGraphVersion = "0.1.26";
3
+ export declare const gradleProjectGraphVersion = "0.1.27";
@@ -4,4 +4,4 @@ exports.gradleProjectGraphVersion = exports.gradleProjectGraphPluginName = expor
4
4
  const path_1 = require("path");
5
5
  exports.nxVersion = require((0, path_1.join)('@nx/gradle', 'package.json')).version;
6
6
  exports.gradleProjectGraphPluginName = 'dev.nx.gradle.project-graph';
7
- exports.gradleProjectGraphVersion = '0.1.26';
7
+ exports.gradleProjectGraphVersion = '0.1.27';
package/migrations.json CHANGED
@@ -198,6 +198,12 @@
198
198
  "description": "Change dev.nx.gradle.project-graph to version 0.1.26 in build file",
199
199
  "implementation": "./dist/src/migrations/24-0-0/change-plugin-version-0-1-26",
200
200
  "documentation": "./dist/src/migrations/24-0-0/change-plugin-version-0-1-26.md"
201
+ },
202
+ "change-plugin-version-0-1-27": {
203
+ "version": "24.0.7",
204
+ "description": "Change dev.nx.gradle.project-graph to version 0.1.27 in build file",
205
+ "implementation": "./dist/src/migrations/24-1-0/change-plugin-version-0-1-27",
206
+ "documentation": "./dist/src/migrations/24-1-0/change-plugin-version-0-1-27.md"
201
207
  }
202
208
  },
203
209
  "packageJsonUpdates": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/gradle",
3
- "version": "24.0.6",
3
+ "version": "24.0.7",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -67,12 +67,12 @@
67
67
  "supportsOptionalMigrations": true
68
68
  },
69
69
  "dependencies": {
70
- "@nx/devkit": "24.0.6",
70
+ "@nx/devkit": "24.0.7",
71
71
  "toml-eslint-parser": "^0.10.0",
72
72
  "tslib": "^2.3.0"
73
73
  },
74
74
  "devDependencies": {
75
- "nx": "24.0.6"
75
+ "nx": "24.0.7"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public"