@nx/gradle 23.0.0-beta.22 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/gradle",
3
- "version": "23.0.0-beta.22",
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.22",
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.22"
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 createNodesV2: import("packages/devkit/dist").CreateNodesV2<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
3
- export declare const createNodes: import("packages/devkit/dist").CreateNodesV2<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
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,aAAa,sHAA0C,CAAC;AACrE,eAAO,MAAM,WAAW,sHAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,2HAA+C,CAAC"}
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.createNodes = exports.createNodesV2 = exports.name = void 0;
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.createNodesV2 = isDisabled ? undefined : nodes_1.createNodesV2;
9
- exports.createNodes = exports.createNodesV2;
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;
@@ -1,8 +1,12 @@
1
- import { CreateNodesV2, CreateNodesContextV2, ProjectConfiguration, ProjectGraphExternalNode } from '@nx/devkit';
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 createNodesV2: CreateNodesV2<GradlePluginOptions>;
5
- export declare const makeCreateNodesForGradleConfigFile: (projects: Record<string, Partial<ProjectConfiguration>>, projectsCache?: GradleTargets, externalNodes?: Record<string, ProjectGraphExternalNode>, hashes?: string[]) => (gradleFilePath: any, options: GradlePluginOptions | undefined, context: CreateNodesContextV2, idx?: number) => Promise<{
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,aAAa,EACb,oBAAoB,EACpB,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,aAAa,EAAE,aAAa,CAAC,mBAAmB,CA8F5D,CAAC;AAEF,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,oBAAoB,EAC7B,MAAM,MAAM;;;;;;;;EAyCb,CAAC"}
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"}
@@ -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.createNodesV2 = [
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);
@@ -1,4 +1,4 @@
1
- import { CreateNodesV2, CreateNodesContextV2, ProjectConfiguration } from '@nx/devkit';
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: CreateNodesV2<GradlePluginOptions>;
17
- export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleReport, pluginCache: PluginCache<Partial<ProjectConfiguration>>, gradleProjectRootToTestFilesMap?: Record<string, string[]>, hashes?: string[]) => (gradleFilePath: any, options: GradlePluginOptions | undefined, context: CreateNodesContextV2, idx?: number) => Promise<{
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: CreateNodesV2<GradlePluginOptions>;
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,aAAa,EACb,oBAAoB,EACpB,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,aAAa,CAAC,mBAAmB,CA8C5D,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,SA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