@nx/gradle 23.0.0-beta.21 → 23.0.0-beta.23
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/gradle-batch-runner-all.jar +0 -0
- package/batch-runner/build/libs/gradle-batch-runner.jar +0 -0
- package/migrations.json +46 -23
- package/package.json +3 -3
- package/plugin.d.ts +5 -2
- package/plugin.d.ts.map +1 -1
- package/plugin.js +6 -3
- package/src/migrations/20-2-0/add-include-subprojects-tasks.md +28 -0
- package/src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.md +31 -0
- package/src/migrations/21-0-0/change-plugin-to-v1.md +21 -0
- package/src/migrations/21-1-2/change-plugin-version-0-1-0.md +21 -0
- package/src/migrations/21-3-0/change-plugin-version-0-1-2.md +21 -0
- package/src/migrations/21-3-11/change-plugin-version-0-1-4.md +21 -0
- package/src/migrations/21-4-0/change-plugin-version-0-1-5.md +21 -0
- package/src/migrations/21-4-1/change-plugin-version-0-1-6.md +21 -0
- package/src/migrations/21-5-1/change-plugin-version-0-1-7.md +21 -0
- package/src/migrations/21-6-1/change-plugin-version-0-1-8.md +21 -0
- package/src/migrations/22-1-0/change-plugin-version-0-1-9.md +21 -0
- package/src/migrations/22-2-0/change-plugin-version-0-1-10.md +21 -0
- package/src/migrations/22-3-0/change-plugin-version-0-1-11.md +21 -0
- package/src/migrations/22-5-0/change-plugin-version-0-1-12.md +21 -0
- package/src/migrations/22-5-3/change-plugin-version-0-1-13.md +21 -0
- package/src/migrations/22-6-0/change-plugin-version-0-1-14.md +21 -0
- package/src/migrations/22-6-0/change-plugin-version-0-1-15.md +21 -0
- package/src/migrations/22-7-0/change-plugin-version-0-1-16.md +21 -0
- package/src/migrations/22-7-0/change-plugin-version-0-1-17.md +21 -0
- package/src/migrations/22-7-0/change-plugin-version-0-1-18.md +21 -0
- package/src/migrations/22-7-0/change-plugin-version-0-1-19.md +21 -0
- package/src/migrations/22-7-0/change-plugin-version-0-1-20.md +21 -0
- package/src/migrations/23-0-0/change-plugin-version-0-1-21.md +21 -0
- package/src/plugin/nodes.d.ts +7 -3
- package/src/plugin/nodes.d.ts.map +1 -1
- package/src/plugin/nodes.js +6 -2
- package/src/plugin-v1/nodes.d.ts +4 -4
- package/src/plugin-v1/nodes.d.ts.map +1 -1
|
Binary file
|
|
Binary file
|
package/migrations.json
CHANGED
|
@@ -4,139 +4,162 @@
|
|
|
4
4
|
"version": "20.2.0-beta.4",
|
|
5
5
|
"cli": "nx",
|
|
6
6
|
"description": "Add includeSubprojectsTasks to build.gradle file",
|
|
7
|
-
"factory": "./src/migrations/20-2-0/add-include-subprojects-tasks"
|
|
7
|
+
"factory": "./src/migrations/20-2-0/add-include-subprojects-tasks",
|
|
8
|
+
"documentation": "./src/migrations/20-2-0/add-include-subprojects-tasks.md"
|
|
8
9
|
},
|
|
9
10
|
"change-plugin-to-v1": {
|
|
10
11
|
"version": "21.0.0-beta.5",
|
|
11
12
|
"cli": "nx",
|
|
12
13
|
"description": "Change @nx/gradle plugin to version 1",
|
|
13
|
-
"factory": "./src/migrations/21-0-0/change-plugin-to-v1"
|
|
14
|
+
"factory": "./src/migrations/21-0-0/change-plugin-to-v1",
|
|
15
|
+
"documentation": "./src/migrations/21-0-0/change-plugin-to-v1.md"
|
|
14
16
|
},
|
|
15
17
|
"change-ciTargetName-to-ciTestTargetName": {
|
|
16
18
|
"version": "21.0.0-beta.13",
|
|
17
19
|
"cli": "nx",
|
|
18
20
|
"description": "Change @nx/gradle option from ciTargetName to ciTestTargetName",
|
|
19
|
-
"factory": "./src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName"
|
|
21
|
+
"factory": "./src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName",
|
|
22
|
+
"documentation": "./src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.md"
|
|
20
23
|
},
|
|
21
24
|
"change-plugin-version-0-1-0": {
|
|
22
25
|
"version": "21.1.2-beta.1",
|
|
23
26
|
"cli": "nx",
|
|
24
27
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.0 in build file",
|
|
25
|
-
"factory": "./src/migrations/21-1-2/change-plugin-version-0-1-0"
|
|
28
|
+
"factory": "./src/migrations/21-1-2/change-plugin-version-0-1-0",
|
|
29
|
+
"documentation": "./src/migrations/21-1-2/change-plugin-version-0-1-0.md"
|
|
26
30
|
},
|
|
27
31
|
"change-plugin-version-0-1-2": {
|
|
28
32
|
"version": "21.3.0-beta.0",
|
|
29
33
|
"cli": "nx",
|
|
30
34
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.2 in build file",
|
|
31
|
-
"factory": "./src/migrations/21-3-0/change-plugin-version-0-1-2"
|
|
35
|
+
"factory": "./src/migrations/21-3-0/change-plugin-version-0-1-2",
|
|
36
|
+
"documentation": "./src/migrations/21-3-0/change-plugin-version-0-1-2.md"
|
|
32
37
|
},
|
|
33
38
|
"change-plugin-version-0-1-4": {
|
|
34
39
|
"version": "21.3.11-beta.0",
|
|
35
40
|
"cli": "nx",
|
|
36
41
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.4 in build file",
|
|
37
|
-
"factory": "./src/migrations/21-3-11/change-plugin-version-0-1-4"
|
|
42
|
+
"factory": "./src/migrations/21-3-11/change-plugin-version-0-1-4",
|
|
43
|
+
"documentation": "./src/migrations/21-3-11/change-plugin-version-0-1-4.md"
|
|
38
44
|
},
|
|
39
45
|
"change-plugin-version-0-1-5": {
|
|
40
46
|
"version": "21.4.0-beta.12",
|
|
41
47
|
"cli": "nx",
|
|
42
48
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.5 in build file",
|
|
43
|
-
"factory": "./src/migrations/21-4-0/change-plugin-version-0-1-5"
|
|
49
|
+
"factory": "./src/migrations/21-4-0/change-plugin-version-0-1-5",
|
|
50
|
+
"documentation": "./src/migrations/21-4-0/change-plugin-version-0-1-5.md"
|
|
44
51
|
},
|
|
45
52
|
"change-plugin-version-0-1-6": {
|
|
46
53
|
"version": "21.4.1-beta.1",
|
|
47
54
|
"cli": "nx",
|
|
48
55
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.6 in build file",
|
|
49
|
-
"factory": "./src/migrations/21-4-1/change-plugin-version-0-1-6"
|
|
56
|
+
"factory": "./src/migrations/21-4-1/change-plugin-version-0-1-6",
|
|
57
|
+
"documentation": "./src/migrations/21-4-1/change-plugin-version-0-1-6.md"
|
|
50
58
|
},
|
|
51
59
|
"change-plugin-version-0-1-7": {
|
|
52
60
|
"version": "21.5.1-beta.5",
|
|
53
61
|
"cli": "nx",
|
|
54
62
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.7 in build file",
|
|
55
|
-
"factory": "./src/migrations/21-5-1/change-plugin-version-0-1-7"
|
|
63
|
+
"factory": "./src/migrations/21-5-1/change-plugin-version-0-1-7",
|
|
64
|
+
"documentation": "./src/migrations/21-5-1/change-plugin-version-0-1-7.md"
|
|
56
65
|
},
|
|
57
66
|
"change-plugin-version-0-1-8": {
|
|
58
67
|
"version": "21.6.1-beta.2",
|
|
59
68
|
"cli": "nx",
|
|
60
69
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.8 in build file",
|
|
61
|
-
"factory": "./src/migrations/21-6-1/change-plugin-version-0-1-8"
|
|
70
|
+
"factory": "./src/migrations/21-6-1/change-plugin-version-0-1-8",
|
|
71
|
+
"documentation": "./src/migrations/21-6-1/change-plugin-version-0-1-8.md"
|
|
62
72
|
},
|
|
63
73
|
"change-plugin-version-0-1-9": {
|
|
64
74
|
"version": "22.1.0-rc.3",
|
|
65
75
|
"cli": "nx",
|
|
66
76
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.9 in build file",
|
|
67
|
-
"factory": "./src/migrations/22-1-0/change-plugin-version-0-1-9"
|
|
77
|
+
"factory": "./src/migrations/22-1-0/change-plugin-version-0-1-9",
|
|
78
|
+
"documentation": "./src/migrations/22-1-0/change-plugin-version-0-1-9.md"
|
|
68
79
|
},
|
|
69
80
|
"change-plugin-version-0-1-10": {
|
|
70
81
|
"version": "22.2.0-beta.4",
|
|
71
82
|
"cli": "nx",
|
|
72
83
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.10 in build file",
|
|
73
|
-
"factory": "./src/migrations/22-2-0/change-plugin-version-0-1-10"
|
|
84
|
+
"factory": "./src/migrations/22-2-0/change-plugin-version-0-1-10",
|
|
85
|
+
"documentation": "./src/migrations/22-2-0/change-plugin-version-0-1-10.md"
|
|
74
86
|
},
|
|
75
87
|
"change-plugin-version-0-1-11": {
|
|
76
88
|
"version": "22.4.0-beta.2",
|
|
77
89
|
"cli": "nx",
|
|
78
90
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.11 in build file",
|
|
79
|
-
"factory": "./src/migrations/22-3-0/change-plugin-version-0-1-11"
|
|
91
|
+
"factory": "./src/migrations/22-3-0/change-plugin-version-0-1-11",
|
|
92
|
+
"documentation": "./src/migrations/22-3-0/change-plugin-version-0-1-11.md"
|
|
80
93
|
},
|
|
81
94
|
"change-plugin-version-0-1-12": {
|
|
82
95
|
"version": "22.5.0-beta.5",
|
|
83
96
|
"cli": "nx",
|
|
84
97
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.12 in build file",
|
|
85
|
-
"factory": "./src/migrations/22-5-0/change-plugin-version-0-1-12"
|
|
98
|
+
"factory": "./src/migrations/22-5-0/change-plugin-version-0-1-12",
|
|
99
|
+
"documentation": "./src/migrations/22-5-0/change-plugin-version-0-1-12.md"
|
|
86
100
|
},
|
|
87
101
|
"change-plugin-version-0-1-13": {
|
|
88
102
|
"version": "22.5.3",
|
|
89
103
|
"cli": "nx",
|
|
90
104
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.13 in build file",
|
|
91
|
-
"factory": "./src/migrations/22-5-3/change-plugin-version-0-1-13"
|
|
105
|
+
"factory": "./src/migrations/22-5-3/change-plugin-version-0-1-13",
|
|
106
|
+
"documentation": "./src/migrations/22-5-3/change-plugin-version-0-1-13.md"
|
|
92
107
|
},
|
|
93
108
|
"change-plugin-version-0-1-14": {
|
|
94
109
|
"version": "22.6.0-beta.11",
|
|
95
110
|
"cli": "nx",
|
|
96
111
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.14 in build file",
|
|
97
|
-
"factory": "./src/migrations/22-6-0/change-plugin-version-0-1-14"
|
|
112
|
+
"factory": "./src/migrations/22-6-0/change-plugin-version-0-1-14",
|
|
113
|
+
"documentation": "./src/migrations/22-6-0/change-plugin-version-0-1-14.md"
|
|
98
114
|
},
|
|
99
115
|
"change-plugin-version-0-1-15": {
|
|
100
116
|
"version": "22.6.0-beta.13",
|
|
101
117
|
"cli": "nx",
|
|
102
118
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.15 in build file",
|
|
103
|
-
"factory": "./src/migrations/22-6-0/change-plugin-version-0-1-15"
|
|
119
|
+
"factory": "./src/migrations/22-6-0/change-plugin-version-0-1-15",
|
|
120
|
+
"documentation": "./src/migrations/22-6-0/change-plugin-version-0-1-15.md"
|
|
104
121
|
},
|
|
105
122
|
"change-plugin-version-0-1-16": {
|
|
106
123
|
"version": "22.7.0-beta.2",
|
|
107
124
|
"cli": "nx",
|
|
108
125
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.16 in build file",
|
|
109
|
-
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-16"
|
|
126
|
+
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-16",
|
|
127
|
+
"documentation": "./src/migrations/22-7-0/change-plugin-version-0-1-16.md"
|
|
110
128
|
},
|
|
111
129
|
"change-plugin-version-0-1-17": {
|
|
112
130
|
"version": "22.7.0-beta.4",
|
|
113
131
|
"cli": "nx",
|
|
114
132
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.17 in build file",
|
|
115
|
-
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-17"
|
|
133
|
+
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-17",
|
|
134
|
+
"documentation": "./src/migrations/22-7-0/change-plugin-version-0-1-17.md"
|
|
116
135
|
},
|
|
117
136
|
"change-plugin-version-0-1-18": {
|
|
118
137
|
"version": "22.7.0-beta.9",
|
|
119
138
|
"cli": "nx",
|
|
120
139
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.18 in build file",
|
|
121
|
-
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-18"
|
|
140
|
+
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-18",
|
|
141
|
+
"documentation": "./src/migrations/22-7-0/change-plugin-version-0-1-18.md"
|
|
122
142
|
},
|
|
123
143
|
"change-plugin-version-0-1-19": {
|
|
124
144
|
"version": "22.7.0-beta.11",
|
|
125
145
|
"cli": "nx",
|
|
126
146
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.19 in build file",
|
|
127
|
-
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-19"
|
|
147
|
+
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-19",
|
|
148
|
+
"documentation": "./src/migrations/22-7-0/change-plugin-version-0-1-19.md"
|
|
128
149
|
},
|
|
129
150
|
"change-plugin-version-0-1-20": {
|
|
130
151
|
"version": "22.7.0-beta.16",
|
|
131
152
|
"cli": "nx",
|
|
132
153
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.20 in build file",
|
|
133
|
-
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-20"
|
|
154
|
+
"factory": "./src/migrations/22-7-0/change-plugin-version-0-1-20",
|
|
155
|
+
"documentation": "./src/migrations/22-7-0/change-plugin-version-0-1-20.md"
|
|
134
156
|
},
|
|
135
157
|
"change-plugin-version-0-1-21": {
|
|
136
158
|
"version": "23.0.0-beta.11",
|
|
137
159
|
"cli": "nx",
|
|
138
160
|
"description": "Change dev.nx.gradle.project-graph to version 0.1.21 in build file",
|
|
139
|
-
"factory": "./src/migrations/23-0-0/change-plugin-version-0-1-21"
|
|
161
|
+
"factory": "./src/migrations/23-0-0/change-plugin-version-0-1-21",
|
|
162
|
+
"documentation": "./src/migrations/23-0-0/change-plugin-version-0-1-21.md"
|
|
140
163
|
}
|
|
141
164
|
},
|
|
142
165
|
"packageJsonUpdates": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/gradle",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Gradle allows Gradle tasks to be run through Nx",
|
|
6
6
|
"repository": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"migrations": "./migrations.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@nx/devkit": "23.0.0-beta.
|
|
43
|
+
"@nx/devkit": "23.0.0-beta.23",
|
|
44
44
|
"toml-eslint-parser": "^0.10.0",
|
|
45
45
|
"tree-kill": "^1.2.2",
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"nx": "23.0.0-beta.
|
|
49
|
+
"nx": "23.0.0-beta.23"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
package/plugin.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const name: string;
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const createNodes: import("packages/devkit/dist").CreateNodes<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createNodesV2: import("packages/devkit/dist").CreateNodes<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
|
|
4
7
|
export declare const createDependencies: import("packages/devkit/dist").CreateDependencies<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
|
|
5
8
|
//# sourceMappingURL=plugin.d.ts.map
|
package/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/gradle/plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,QAAsD,CAAC;AACxE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/gradle/plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,QAAsD,CAAC;AACxE,eAAO,MAAM,WAAW,oHAAwC,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,aAAa,oHAAc,CAAC;AACzC,eAAO,MAAM,kBAAkB,2HAA+C,CAAC"}
|
package/plugin.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createDependencies = exports.
|
|
3
|
+
exports.createDependencies = exports.createNodesV2 = exports.createNodes = exports.name = void 0;
|
|
4
4
|
const dependencies_1 = require("./src/plugin/dependencies");
|
|
5
5
|
const nodes_1 = require("./src/plugin/nodes");
|
|
6
6
|
const isDisabled = process.env.NX_GRADLE_DISABLE === 'true';
|
|
7
7
|
exports.name = isDisabled ? '@nx/gradle [disabled]' : '@nx/gradle';
|
|
8
|
-
exports.
|
|
9
|
-
|
|
8
|
+
exports.createNodes = isDisabled ? undefined : nodes_1.createNodes;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
11
|
+
*/
|
|
12
|
+
exports.createNodesV2 = exports.createNodes;
|
|
10
13
|
exports.createDependencies = isDisabled ? undefined : dependencies_1.createDependencies;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#### Add includeSubprojectsTasks to @nx/gradle Plugin Options
|
|
2
|
+
|
|
3
|
+
Add includeSubprojectsTasks to @nx/gradle plugin options in nx.json file
|
|
4
|
+
|
|
5
|
+
#### Sample Code Changes
|
|
6
|
+
|
|
7
|
+
##### Before
|
|
8
|
+
|
|
9
|
+
```json title="nx.json"
|
|
10
|
+
{
|
|
11
|
+
"plugins": ["@nx/gradle"]
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```json title="nx.json" {5}
|
|
18
|
+
{
|
|
19
|
+
"plugins": [
|
|
20
|
+
{
|
|
21
|
+
"options": {
|
|
22
|
+
"includeSubprojectsTasks": true
|
|
23
|
+
},
|
|
24
|
+
"plugin": "@nx/gradle"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#### Change @nx/gradle plugin option ciTargetName to ciTestTargetName
|
|
2
|
+
|
|
3
|
+
Change @nx/gradle plugin option ciTargetName to ciTestTargetName in nx.json
|
|
4
|
+
|
|
5
|
+
#### Sample Code Changes
|
|
6
|
+
|
|
7
|
+
##### Before
|
|
8
|
+
|
|
9
|
+
```json title="nx.json"
|
|
10
|
+
{
|
|
11
|
+
"plugins": [
|
|
12
|
+
"plugin": "@nx/gradle",
|
|
13
|
+
"options": {
|
|
14
|
+
"ciTargetName": "ci"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
##### After
|
|
21
|
+
|
|
22
|
+
```json title="nx.json" {5}
|
|
23
|
+
{
|
|
24
|
+
"plugins": [
|
|
25
|
+
"plugin": "@nx/gradle",
|
|
26
|
+
"options": {
|
|
27
|
+
"ciTestTargetName": "ci"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change @nx/gradle plugin to @nx/gradle/plugin-v1
|
|
2
|
+
|
|
3
|
+
Change @nx/gradle plugin to version 1 in nx.json
|
|
4
|
+
|
|
5
|
+
#### Sample Code Changes
|
|
6
|
+
|
|
7
|
+
##### Before
|
|
8
|
+
|
|
9
|
+
```json title="nx.json"
|
|
10
|
+
{
|
|
11
|
+
"plugins": ["@nx/gradle"]
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```json title="nx.json" {5}
|
|
18
|
+
{
|
|
19
|
+
"plugins": ["@nx/gradle/plugin-v1"]
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.0
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.0 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.0.5"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.0"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.2
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.2 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.2"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.4
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.4 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.2"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.4"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.5
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.5 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.5"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.6
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.6 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.6"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.7
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.7 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.7"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.8
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.8 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.8"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.9
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.9 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.9"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.10
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.10 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.0"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.10"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.11
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.11 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.10"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.11"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.12
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.12 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.11"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.12"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.13
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.13 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.12"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.13"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.14
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.14 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.13"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.14"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.15
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.15 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.14"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.15"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.16
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.16 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.15"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.16"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.17
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.17 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.16"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.17"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.18
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.18 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.17"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.18"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.19
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.19 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.18"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.19"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.20
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.20 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.19"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.20"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#### Change dev.nx.gradle.project-graph to version 0.1.21
|
|
2
|
+
|
|
3
|
+
Change dev.nx.gradle.project-graph to version 0.1.21 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.20"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```text title="build.gradle"
|
|
18
|
+
plugins {
|
|
19
|
+
id "dev.nx.gradle.project-graph" version "0.1.21"
|
|
20
|
+
}
|
|
21
|
+
```
|
package/src/plugin/nodes.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodes, CreateNodesContext, ProjectConfiguration, ProjectGraphExternalNode } from '@nx/devkit';
|
|
2
2
|
import { GradlePluginOptions } from './utils/gradle-plugin-options';
|
|
3
3
|
type GradleTargets = Record<string, Partial<ProjectConfiguration>>;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
4
|
+
export declare const createNodes: CreateNodes<GradlePluginOptions>;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createNodesV2: CreateNodes<GradlePluginOptions>;
|
|
9
|
+
export declare const makeCreateNodesForGradleConfigFile: (projects: Record<string, Partial<ProjectConfiguration>>, projectsCache?: GradleTargets, externalNodes?: Record<string, ProjectGraphExternalNode>, hashes?: string[]) => (gradleFilePath: any, options: GradlePluginOptions | undefined, context: CreateNodesContext, idx?: number) => Promise<{
|
|
6
10
|
projects?: undefined;
|
|
7
11
|
externalNodes?: undefined;
|
|
8
12
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../../packages/gradle/src/plugin/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../../packages/gradle/src/plugin/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EAEpB,wBAAwB,EAEzB,MAAM,YAAY,CAAC;AAcpB,OAAO,EACL,mBAAmB,EAEpB,MAAM,+BAA+B,CAAC;AAEvC,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAgFnE,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,mBAAmB,CA8FxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,kCAAc,CAAC;AAEzC,eAAO,MAAM,kCAAkC,GAE3C,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,EACvD,gBAAe,aAAkB,EACjC,gBAAe,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAM,EAC5D,SAAS,MAAM,EAAE,MAGjB,mBAAc,EACd,SAAS,mBAAmB,GAAG,SAAS,EACxC,SAAS,kBAAkB,EAC3B,MAAM,MAAM;;;;;;;;EAyCb,CAAC"}
|
package/src/plugin/nodes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeCreateNodesForGradleConfigFile = exports.createNodesV2 = void 0;
|
|
3
|
+
exports.makeCreateNodesForGradleConfigFile = exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
@@ -67,7 +67,7 @@ function extractNxConfigOnly(project) {
|
|
|
67
67
|
}
|
|
68
68
|
return result;
|
|
69
69
|
}
|
|
70
|
-
exports.
|
|
70
|
+
exports.createNodes = [
|
|
71
71
|
split_config_files_1.gradleConfigAndTestGlob,
|
|
72
72
|
async (files, options, context) => {
|
|
73
73
|
const { buildFiles: buildFilesFromSplitConfigFiles, gradlewFiles } = (0, split_config_files_1.splitConfigFiles)(files);
|
|
@@ -133,6 +133,10 @@ exports.createNodesV2 = [
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
];
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
138
|
+
*/
|
|
139
|
+
exports.createNodesV2 = exports.createNodes;
|
|
136
140
|
const makeCreateNodesForGradleConfigFile = (projects, projectsCache = {}, externalNodes = {}, hashes) => async (gradleFilePath, options, context, idx) => {
|
|
137
141
|
const projectRoot = (0, node_path_1.dirname)(gradleFilePath);
|
|
138
142
|
options = (0, gradle_plugin_options_1.normalizeOptions)(options);
|
package/src/plugin-v1/nodes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateNodes, CreateNodesContext, ProjectConfiguration } from '@nx/devkit';
|
|
2
2
|
import { PluginCache } from 'nx/src/utils/plugin-cache-utils';
|
|
3
3
|
import { GradleReport } from './utils/get-gradle-report';
|
|
4
4
|
export interface GradlePluginOptions {
|
|
@@ -13,8 +13,8 @@ export interface GradlePluginOptions {
|
|
|
13
13
|
* @deprecated The `@nx/gradle/plugin-v1` entry is deprecated and will be removed in Nx 24.
|
|
14
14
|
* Switch to the default `@nx/gradle` plugin.
|
|
15
15
|
*/
|
|
16
|
-
export declare const createNodesV2:
|
|
17
|
-
export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleReport, pluginCache: PluginCache<Partial<ProjectConfiguration>>, gradleProjectRootToTestFilesMap?: Record<string, string[]>, hashes?: string[]) => (gradleFilePath: any, options: GradlePluginOptions | undefined, context:
|
|
16
|
+
export declare const createNodesV2: CreateNodes<GradlePluginOptions>;
|
|
17
|
+
export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleReport, pluginCache: PluginCache<Partial<ProjectConfiguration>>, gradleProjectRootToTestFilesMap?: Record<string, string[]>, hashes?: string[]) => (gradleFilePath: any, options: GradlePluginOptions | undefined, context: CreateNodesContext, idx?: number) => Promise<{
|
|
18
18
|
projects?: undefined;
|
|
19
19
|
} | {
|
|
20
20
|
projects: {
|
|
@@ -25,5 +25,5 @@ export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleRe
|
|
|
25
25
|
@deprecated This is replaced with {@link createNodesV2}. Update your plugin to export its own `createNodesV2` function that wraps this one instead.
|
|
26
26
|
This function will change to the v2 function in Nx 20.
|
|
27
27
|
*/
|
|
28
|
-
export declare const createNodes:
|
|
28
|
+
export declare const createNodes: CreateNodes<GradlePluginOptions>;
|
|
29
29
|
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../../packages/gradle/src/plugin-v1/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../../packages/gradle/src/plugin-v1/nodes.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EAGL,YAAY,EACb,MAAM,2BAA2B,CAAC;AAsBnC,MAAM,WAAW,mBAAmB;IAClC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CACxD;AAYD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,mBAAmB,CA8C1D,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAE3C,cAAc,YAAY,EAC1B,aAAa,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,EACvD,kCAAiC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAM,EAC9D,SAAS,MAAM,EAAE,MAGjB,mBAAc,EACd,SAAS,mBAAmB,GAAG,SAAS,EACxC,SAAS,kBAAkB,EAC3B,MAAM,MAAM;;;;;;EAgDb,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,WAAW,kCAAgB,CAAC"}
|