@nx/gradle 19.0.0-canary.20240427-f74aeab → 19.0.0-canary.20240430-458f2cc
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/package.json +2 -2
- package/src/plugin/nodes.d.ts +3 -3
- package/src/plugin/nodes.js +6 -11
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/gradle",
|
3
|
-
"version": "19.0.0-canary.
|
3
|
+
"version": "19.0.0-canary.20240430-458f2cc",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Gradle allows Gradle tasks to be run through Nx",
|
6
6
|
"repository": {
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"migrations": "./migrations.json"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@nx/devkit": "19.0.0-canary.
|
36
|
+
"@nx/devkit": "19.0.0-canary.20240430-458f2cc"
|
37
37
|
},
|
38
38
|
"publishConfig": {
|
39
39
|
"access": "public"
|
package/src/plugin/nodes.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CreateNodes, TargetConfiguration } from '@nx/devkit';
|
1
|
+
import { CreateNodes, ProjectConfiguration, TargetConfiguration } from '@nx/devkit';
|
2
2
|
export interface GradlePluginOptions {
|
3
3
|
testTargetName?: string;
|
4
4
|
classesTargetName?: string;
|
@@ -8,11 +8,11 @@ export interface GradlePluginOptions {
|
|
8
8
|
export declare const calculatedTargets: Record<string, {
|
9
9
|
name: string;
|
10
10
|
targets: Record<string, TargetConfiguration>;
|
11
|
-
|
11
|
+
metadata: ProjectConfiguration['metadata'];
|
12
12
|
}>;
|
13
13
|
export declare function writeTargetsToCache(targets: Record<string, {
|
14
14
|
name: string;
|
15
15
|
targets: Record<string, TargetConfiguration>;
|
16
|
-
|
16
|
+
metadata: ProjectConfiguration['metadata'];
|
17
17
|
}>): void;
|
18
18
|
export declare const createNodes: CreateNodes<GradlePluginOptions>;
|
package/src/plugin/nodes.js
CHANGED
@@ -33,12 +33,7 @@ exports.createNodes = [
|
|
33
33
|
exports.calculatedTargets[hash] = targetsCache[hash];
|
34
34
|
return {
|
35
35
|
projects: {
|
36
|
-
[projectRoot]:
|
37
|
-
...targetsCache[hash],
|
38
|
-
metadata: {
|
39
|
-
technologies: ['gradle'],
|
40
|
-
},
|
41
|
-
},
|
36
|
+
[projectRoot]: targetsCache[hash],
|
42
37
|
},
|
43
38
|
};
|
44
39
|
}
|
@@ -59,18 +54,15 @@ exports.createNodes = [
|
|
59
54
|
}
|
60
55
|
const outputDirs = gradleFileToOutputDirsMap.get(gradleFilePath);
|
61
56
|
const { targets, targetGroups } = createGradleTargets(tasks, projectRoot, options, context, outputDirs);
|
62
|
-
exports.calculatedTargets[hash] = {
|
63
|
-
name: projectName,
|
64
|
-
targets,
|
65
|
-
targetGroups,
|
66
|
-
};
|
67
57
|
const project = {
|
68
58
|
name: projectName,
|
69
59
|
targets,
|
70
60
|
metadata: {
|
61
|
+
targetGroups,
|
71
62
|
technologies: ['gradle'],
|
72
63
|
},
|
73
64
|
};
|
65
|
+
exports.calculatedTargets[hash] = project;
|
74
66
|
return {
|
75
67
|
projects: {
|
76
68
|
[projectRoot]: project,
|
@@ -100,6 +92,9 @@ function createGradleTargets(tasks, projectRoot, options, context, outputDirs) {
|
|
100
92
|
inputs: inputsMap[task.name],
|
101
93
|
outputs: outputs ? [outputs] : undefined,
|
102
94
|
dependsOn: dependsOnMap[task.name],
|
95
|
+
metadata: {
|
96
|
+
technologies: ['gradle'],
|
97
|
+
},
|
103
98
|
};
|
104
99
|
if (!targetGroups[task.type]) {
|
105
100
|
targetGroups[task.type] = [];
|