@nx/gradle 21.5.1-beta.4 → 21.5.1-beta.5
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/batch-runner/build/libs/batch-runner-all.jar +0 -0
- package/batch-runner/build/libs/batch-runner.jar +0 -0
- package/migrations.json +6 -0
- package/package.json +3 -3
- package/src/migrations/21-5-1/change-plugin-version-0-1-7.d.ts +3 -0
- package/src/migrations/21-5-1/change-plugin-version-0-1-7.d.ts.map +1 -0
- package/src/migrations/21-5-1/change-plugin-version-0-1-7.js +23 -0
Binary file
|
Binary file
|
package/migrations.json
CHANGED
@@ -59,6 +59,12 @@
|
|
59
59
|
"cli": "nx",
|
60
60
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.6 in build file",
|
61
61
|
"factory": "./src/migrations/21-4-1/change-plugin-version-0-1-6"
|
62
|
+
},
|
63
|
+
"change-plugin-version-0-1-7": {
|
64
|
+
"version": "21.5.1-beta.5",
|
65
|
+
"cli": "nx",
|
66
|
+
"description": "Change dev.nx.gradle.project-graph to version 0.1.7 in build file",
|
67
|
+
"factory": "./src/migrations/21-5-1/change-plugin-version-0-1-7"
|
62
68
|
}
|
63
69
|
},
|
64
70
|
"packageJsonUpdates": {}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/gradle",
|
3
|
-
"version": "21.5.1-beta.
|
3
|
+
"version": "21.5.1-beta.5",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Gradle allows Gradle tasks to be run through Nx",
|
6
6
|
"repository": {
|
@@ -35,11 +35,11 @@
|
|
35
35
|
"migrations": "./migrations.json"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@nx/devkit": "21.5.1-beta.
|
38
|
+
"@nx/devkit": "21.5.1-beta.5",
|
39
39
|
"toml-eslint-parser": "^0.10.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"nx": "21.5.1-beta.
|
42
|
+
"nx": "21.5.1-beta.5"
|
43
43
|
},
|
44
44
|
"publishConfig": {
|
45
45
|
"access": "public"
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"change-plugin-version-0-1-7.d.ts","sourceRoot":"","sources":["../../../../../../packages/gradle/src/migrations/21-5-1/change-plugin-version-0-1-7.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CAAC;AAO9C,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBAgB9C"}
|
@@ -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.7
|
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.7';
|
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
|
+
}
|