@nx/gradle 23.0.0-rc.0 → 23.0.0-rc.2
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.
- package/dist/batch-runner/build/libs/gradle-batch-runner-all.jar +0 -0
- package/dist/batch-runner/build/libs/gradle-batch-runner.jar +0 -0
- package/dist/src/migrations/23-0-0/change-plugin-version-0-1-22.d.ts +2 -0
- package/dist/src/migrations/23-0-0/change-plugin-version-0-1-22.js +23 -0
- package/dist/src/migrations/23-0-0/change-plugin-version-0-1-22.md +21 -0
- package/dist/src/utils/versions.d.ts +1 -1
- package/dist/src/utils/versions.js +1 -1
- package/migrations.json +7 -0
- package/package.json +3 -3
|
Binary file
|
|
Binary file
|
|
@@ -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.22
|
|
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.22';
|
|
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.22
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.22 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.21"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.22"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -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.
|
|
7
|
+
exports.gradleProjectGraphVersion = '0.1.22';
|
package/migrations.json
CHANGED
|
@@ -159,6 +159,13 @@
|
|
|
159
159
|
"description": "Rename imports of `createNodesV2` from `@nx/gradle` and `@nx/gradle/plugin-v1` to the canonical `createNodes` export.",
|
|
160
160
|
"implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
|
|
161
161
|
"documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
|
|
162
|
+
},
|
|
163
|
+
"change-plugin-version-0-1-22": {
|
|
164
|
+
"version": "23.0.0-rc.2",
|
|
165
|
+
"cli": "nx",
|
|
166
|
+
"description": "Change dev.nx.gradle.project-graph to version 0.1.22 in build file",
|
|
167
|
+
"factory": "./dist/src/migrations/23-0-0/change-plugin-version-0-1-22",
|
|
168
|
+
"documentation": "./dist/src/migrations/23-0-0/change-plugin-version-0-1-22.md"
|
|
162
169
|
}
|
|
163
170
|
},
|
|
164
171
|
"packageJsonUpdates": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/gradle",
|
|
3
|
-
"version": "23.0.0-rc.
|
|
3
|
+
"version": "23.0.0-rc.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"toml-eslint-parser": "^0.10.0",
|
|
79
79
|
"tree-kill": "^1.2.2",
|
|
80
80
|
"tslib": "^2.3.0",
|
|
81
|
-
"@nx/devkit": "23.0.0-rc.
|
|
81
|
+
"@nx/devkit": "23.0.0-rc.2"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"nx": "23.0.0-rc.
|
|
84
|
+
"nx": "23.0.0-rc.2"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|