@nx/gradle 23.0.0-beta.23 → 23.0.0-beta.25

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.
Files changed (191) hide show
  1. package/{batch-runner → dist/batch-runner}/build/libs/gradle-batch-runner-all.jar +0 -0
  2. package/{batch-runner → dist/batch-runner}/build/libs/gradle-batch-runner.jar +0 -0
  3. package/dist/index.d.ts +1 -0
  4. package/{plugin-v1.d.ts → dist/plugin-v1.d.ts} +0 -1
  5. package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
  6. package/{src → dist/src}/executors/gradle/get-exclude-task.d.ts +0 -1
  7. package/{src → dist/src}/executors/gradle/gradle-batch.impl.d.ts +0 -1
  8. package/{src → dist/src}/executors/gradle/gradle.impl.d.ts +0 -1
  9. package/{src → dist/src}/generators/ci-workflow/generator.d.ts +0 -1
  10. package/{src → dist/src}/generators/init/gradle-project-graph-plugin-utils.d.ts +0 -1
  11. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  12. package/{src/migrations/20-2-0/add-include-subprojects-tasks.d.ts → dist/src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.d.ts} +0 -1
  13. package/{src → dist/src}/migrations/21-0-0/change-plugin-to-v1.d.ts +0 -1
  14. package/{src → dist/src}/migrations/21-1-2/change-plugin-version-0-1-0.d.ts +0 -1
  15. package/{src → dist/src}/migrations/21-3-0/change-plugin-version-0-1-2.d.ts +0 -1
  16. package/{src → dist/src}/migrations/21-3-11/change-plugin-version-0-1-4.d.ts +0 -1
  17. package/{src → dist/src}/migrations/21-4-0/change-plugin-version-0-1-5.d.ts +0 -1
  18. package/{src → dist/src}/migrations/21-4-1/change-plugin-version-0-1-6.d.ts +0 -1
  19. package/{src → dist/src}/migrations/21-5-1/change-plugin-version-0-1-7.d.ts +0 -1
  20. package/{src → dist/src}/migrations/21-6-1/change-plugin-version-0-1-8.d.ts +0 -1
  21. package/{src → dist/src}/migrations/22-1-0/change-plugin-version-0-1-9.d.ts +0 -1
  22. package/dist/src/migrations/22-2-0/change-plugin-version-0-1-10.d.ts +2 -0
  23. package/dist/src/migrations/22-3-0/change-plugin-version-0-1-11.d.ts +2 -0
  24. package/dist/src/migrations/22-5-0/change-plugin-version-0-1-12.d.ts +2 -0
  25. package/dist/src/migrations/22-5-3/change-plugin-version-0-1-13.d.ts +2 -0
  26. package/dist/src/migrations/22-6-0/change-plugin-version-0-1-14.d.ts +2 -0
  27. package/dist/src/migrations/22-6-0/change-plugin-version-0-1-15.d.ts +2 -0
  28. package/dist/src/migrations/22-7-0/change-plugin-version-0-1-16.d.ts +2 -0
  29. package/dist/src/migrations/22-7-0/change-plugin-version-0-1-17.d.ts +2 -0
  30. package/dist/src/migrations/22-7-0/change-plugin-version-0-1-18.d.ts +2 -0
  31. package/dist/src/migrations/22-7-0/change-plugin-version-0-1-19.d.ts +2 -0
  32. package/dist/src/migrations/22-7-0/change-plugin-version-0-1-20.d.ts +2 -0
  33. package/dist/src/migrations/23-0-0/change-plugin-version-0-1-21.d.ts +2 -0
  34. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
  35. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +137 -0
  36. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
  37. package/{src → dist/src}/plugin/dependencies.d.ts +0 -1
  38. package/{src → dist/src}/plugin/nodes.d.ts +0 -1
  39. package/{src → dist/src}/plugin/utils/get-project-graph-from-gradle-plugin.d.ts +0 -1
  40. package/{src → dist/src}/plugin/utils/get-project-graph-lines.d.ts +0 -1
  41. package/{src → dist/src}/plugin/utils/gradle-plugin-options.d.ts +0 -1
  42. package/{src → dist/src}/plugin-v1/dependencies.d.ts +0 -1
  43. package/{src → dist/src}/plugin-v1/nodes.d.ts +0 -1
  44. package/{src → dist/src}/plugin-v1/utils/get-gradle-report.d.ts +0 -1
  45. package/{src → dist/src}/plugin-v1/utils/get-project-report-lines.d.ts +0 -1
  46. package/{src → dist/src}/utils/exec-gradle.d.ts +0 -1
  47. package/{src → dist/src}/utils/has-gradle-plugin.d.ts +0 -1
  48. package/{src → dist/src}/utils/split-config-files.d.ts +0 -1
  49. package/{src → dist/src}/utils/version-catalog-ast-utils.d.ts +0 -1
  50. package/{src → dist/src}/utils/versions.d.ts +0 -1
  51. package/{src → dist/src}/utils/versions.js +2 -1
  52. package/executors.json +3 -3
  53. package/generators.json +4 -4
  54. package/migrations.json +50 -51
  55. package/package.json +50 -15
  56. package/index.d.ts +0 -2
  57. package/index.d.ts.map +0 -1
  58. package/plugin-v1.d.ts.map +0 -1
  59. package/plugin.d.ts.map +0 -1
  60. package/src/executors/gradle/get-exclude-task.d.ts.map +0 -1
  61. package/src/executors/gradle/gradle-batch.impl.d.ts.map +0 -1
  62. package/src/executors/gradle/gradle.impl.d.ts.map +0 -1
  63. package/src/generators/ci-workflow/generator.d.ts.map +0 -1
  64. package/src/generators/init/gradle-project-graph-plugin-utils.d.ts.map +0 -1
  65. package/src/generators/init/init.d.ts.map +0 -1
  66. package/src/migrations/20-2-0/add-include-subprojects-tasks.d.ts.map +0 -1
  67. package/src/migrations/20-2-0/add-include-subprojects-tasks.js +0 -32
  68. package/src/migrations/20-2-0/add-include-subprojects-tasks.md +0 -28
  69. package/src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.d.ts +0 -3
  70. package/src/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.d.ts.map +0 -1
  71. package/src/migrations/21-0-0/change-plugin-to-v1.d.ts.map +0 -1
  72. package/src/migrations/21-1-2/change-plugin-version-0-1-0.d.ts.map +0 -1
  73. package/src/migrations/21-3-0/change-plugin-version-0-1-2.d.ts.map +0 -1
  74. package/src/migrations/21-3-11/change-plugin-version-0-1-4.d.ts.map +0 -1
  75. package/src/migrations/21-4-0/change-plugin-version-0-1-5.d.ts.map +0 -1
  76. package/src/migrations/21-4-1/change-plugin-version-0-1-6.d.ts.map +0 -1
  77. package/src/migrations/21-5-1/change-plugin-version-0-1-7.d.ts.map +0 -1
  78. package/src/migrations/21-6-1/change-plugin-version-0-1-8.d.ts.map +0 -1
  79. package/src/migrations/22-1-0/change-plugin-version-0-1-9.d.ts.map +0 -1
  80. package/src/migrations/22-2-0/change-plugin-version-0-1-10.d.ts +0 -3
  81. package/src/migrations/22-2-0/change-plugin-version-0-1-10.d.ts.map +0 -1
  82. package/src/migrations/22-3-0/change-plugin-version-0-1-11.d.ts +0 -3
  83. package/src/migrations/22-3-0/change-plugin-version-0-1-11.d.ts.map +0 -1
  84. package/src/migrations/22-5-0/change-plugin-version-0-1-12.d.ts +0 -3
  85. package/src/migrations/22-5-0/change-plugin-version-0-1-12.d.ts.map +0 -1
  86. package/src/migrations/22-5-3/change-plugin-version-0-1-13.d.ts +0 -3
  87. package/src/migrations/22-5-3/change-plugin-version-0-1-13.d.ts.map +0 -1
  88. package/src/migrations/22-6-0/change-plugin-version-0-1-14.d.ts +0 -3
  89. package/src/migrations/22-6-0/change-plugin-version-0-1-14.d.ts.map +0 -1
  90. package/src/migrations/22-6-0/change-plugin-version-0-1-15.d.ts +0 -3
  91. package/src/migrations/22-6-0/change-plugin-version-0-1-15.d.ts.map +0 -1
  92. package/src/migrations/22-7-0/change-plugin-version-0-1-16.d.ts +0 -3
  93. package/src/migrations/22-7-0/change-plugin-version-0-1-16.d.ts.map +0 -1
  94. package/src/migrations/22-7-0/change-plugin-version-0-1-17.d.ts +0 -3
  95. package/src/migrations/22-7-0/change-plugin-version-0-1-17.d.ts.map +0 -1
  96. package/src/migrations/22-7-0/change-plugin-version-0-1-18.d.ts +0 -3
  97. package/src/migrations/22-7-0/change-plugin-version-0-1-18.d.ts.map +0 -1
  98. package/src/migrations/22-7-0/change-plugin-version-0-1-19.d.ts +0 -3
  99. package/src/migrations/22-7-0/change-plugin-version-0-1-19.d.ts.map +0 -1
  100. package/src/migrations/22-7-0/change-plugin-version-0-1-20.d.ts +0 -3
  101. package/src/migrations/22-7-0/change-plugin-version-0-1-20.d.ts.map +0 -1
  102. package/src/migrations/23-0-0/change-plugin-version-0-1-21.d.ts +0 -3
  103. package/src/migrations/23-0-0/change-plugin-version-0-1-21.d.ts.map +0 -1
  104. package/src/plugin/dependencies.d.ts.map +0 -1
  105. package/src/plugin/nodes.d.ts.map +0 -1
  106. package/src/plugin/utils/get-project-graph-from-gradle-plugin.d.ts.map +0 -1
  107. package/src/plugin/utils/get-project-graph-lines.d.ts.map +0 -1
  108. package/src/plugin/utils/gradle-plugin-options.d.ts.map +0 -1
  109. package/src/plugin-v1/dependencies.d.ts.map +0 -1
  110. package/src/plugin-v1/nodes.d.ts.map +0 -1
  111. package/src/plugin-v1/utils/get-gradle-report.d.ts.map +0 -1
  112. package/src/plugin-v1/utils/get-project-report-lines.d.ts.map +0 -1
  113. package/src/utils/exec-gradle.d.ts.map +0 -1
  114. package/src/utils/has-gradle-plugin.d.ts.map +0 -1
  115. package/src/utils/split-config-files.d.ts.map +0 -1
  116. package/src/utils/version-catalog-ast-utils.d.ts.map +0 -1
  117. package/src/utils/versions.d.ts.map +0 -1
  118. /package/{LICENSE → dist/LICENSE} +0 -0
  119. /package/{index.js → dist/index.js} +0 -0
  120. /package/{plugin-v1.js → dist/plugin-v1.js} +0 -0
  121. /package/{plugin.js → dist/plugin.js} +0 -0
  122. /package/{src → dist/src}/executors/gradle/get-exclude-task.js +0 -0
  123. /package/{src → dist/src}/executors/gradle/gradle-batch.impl.js +0 -0
  124. /package/{src → dist/src}/executors/gradle/gradle.impl.js +0 -0
  125. /package/{src → dist/src}/executors/gradle/schema.d.ts +0 -0
  126. /package/{src → dist/src}/executors/gradle/schema.json +0 -0
  127. /package/{src → dist/src}/generators/ci-workflow/files/circleci/.circleci/config.yml.template +0 -0
  128. /package/{src → dist/src}/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml.template +0 -0
  129. /package/{src → dist/src}/generators/ci-workflow/generator.js +0 -0
  130. /package/{src → dist/src}/generators/ci-workflow/schema.json +0 -0
  131. /package/{src → dist/src}/generators/init/gradle-project-graph-plugin-utils.js +0 -0
  132. /package/{src → dist/src}/generators/init/init.js +0 -0
  133. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  134. /package/{src → dist/src}/generators/init/schema.json +0 -0
  135. /package/{src → dist/src}/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.js +0 -0
  136. /package/{src → dist/src}/migrations/21-0-0/change-ciTargetName-to-ciTestTargetName.md +0 -0
  137. /package/{src → dist/src}/migrations/21-0-0/change-plugin-to-v1.js +0 -0
  138. /package/{src → dist/src}/migrations/21-0-0/change-plugin-to-v1.md +0 -0
  139. /package/{src → dist/src}/migrations/21-1-2/change-plugin-version-0-1-0.js +0 -0
  140. /package/{src → dist/src}/migrations/21-1-2/change-plugin-version-0-1-0.md +0 -0
  141. /package/{src → dist/src}/migrations/21-3-0/change-plugin-version-0-1-2.js +0 -0
  142. /package/{src → dist/src}/migrations/21-3-0/change-plugin-version-0-1-2.md +0 -0
  143. /package/{src → dist/src}/migrations/21-3-11/change-plugin-version-0-1-4.js +0 -0
  144. /package/{src → dist/src}/migrations/21-3-11/change-plugin-version-0-1-4.md +0 -0
  145. /package/{src → dist/src}/migrations/21-4-0/change-plugin-version-0-1-5.js +0 -0
  146. /package/{src → dist/src}/migrations/21-4-0/change-plugin-version-0-1-5.md +0 -0
  147. /package/{src → dist/src}/migrations/21-4-1/change-plugin-version-0-1-6.js +0 -0
  148. /package/{src → dist/src}/migrations/21-4-1/change-plugin-version-0-1-6.md +0 -0
  149. /package/{src → dist/src}/migrations/21-5-1/change-plugin-version-0-1-7.js +0 -0
  150. /package/{src → dist/src}/migrations/21-5-1/change-plugin-version-0-1-7.md +0 -0
  151. /package/{src → dist/src}/migrations/21-6-1/change-plugin-version-0-1-8.js +0 -0
  152. /package/{src → dist/src}/migrations/21-6-1/change-plugin-version-0-1-8.md +0 -0
  153. /package/{src → dist/src}/migrations/22-1-0/change-plugin-version-0-1-9.js +0 -0
  154. /package/{src → dist/src}/migrations/22-1-0/change-plugin-version-0-1-9.md +0 -0
  155. /package/{src → dist/src}/migrations/22-2-0/change-plugin-version-0-1-10.js +0 -0
  156. /package/{src → dist/src}/migrations/22-2-0/change-plugin-version-0-1-10.md +0 -0
  157. /package/{src → dist/src}/migrations/22-3-0/change-plugin-version-0-1-11.js +0 -0
  158. /package/{src → dist/src}/migrations/22-3-0/change-plugin-version-0-1-11.md +0 -0
  159. /package/{src → dist/src}/migrations/22-5-0/change-plugin-version-0-1-12.js +0 -0
  160. /package/{src → dist/src}/migrations/22-5-0/change-plugin-version-0-1-12.md +0 -0
  161. /package/{src → dist/src}/migrations/22-5-3/change-plugin-version-0-1-13.js +0 -0
  162. /package/{src → dist/src}/migrations/22-5-3/change-plugin-version-0-1-13.md +0 -0
  163. /package/{src → dist/src}/migrations/22-6-0/change-plugin-version-0-1-14.js +0 -0
  164. /package/{src → dist/src}/migrations/22-6-0/change-plugin-version-0-1-14.md +0 -0
  165. /package/{src → dist/src}/migrations/22-6-0/change-plugin-version-0-1-15.js +0 -0
  166. /package/{src → dist/src}/migrations/22-6-0/change-plugin-version-0-1-15.md +0 -0
  167. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-16.js +0 -0
  168. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-16.md +0 -0
  169. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-17.js +0 -0
  170. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-17.md +0 -0
  171. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-18.js +0 -0
  172. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-18.md +0 -0
  173. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-19.js +0 -0
  174. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-19.md +0 -0
  175. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-20.js +0 -0
  176. /package/{src → dist/src}/migrations/22-7-0/change-plugin-version-0-1-20.md +0 -0
  177. /package/{src → dist/src}/migrations/23-0-0/change-plugin-version-0-1-21.js +0 -0
  178. /package/{src → dist/src}/migrations/23-0-0/change-plugin-version-0-1-21.md +0 -0
  179. /package/{src → dist/src}/plugin/dependencies.js +0 -0
  180. /package/{src → dist/src}/plugin/nodes.js +0 -0
  181. /package/{src → dist/src}/plugin/utils/get-project-graph-from-gradle-plugin.js +0 -0
  182. /package/{src → dist/src}/plugin/utils/get-project-graph-lines.js +0 -0
  183. /package/{src → dist/src}/plugin/utils/gradle-plugin-options.js +0 -0
  184. /package/{src → dist/src}/plugin-v1/dependencies.js +0 -0
  185. /package/{src → dist/src}/plugin-v1/nodes.js +0 -0
  186. /package/{src → dist/src}/plugin-v1/utils/get-gradle-report.js +0 -0
  187. /package/{src → dist/src}/plugin-v1/utils/get-project-report-lines.js +0 -0
  188. /package/{src → dist/src}/utils/exec-gradle.js +0 -0
  189. /package/{src → dist/src}/utils/has-gradle-plugin.js +0 -0
  190. /package/{src → dist/src}/utils/split-config-files.js +0 -0
  191. /package/{src → dist/src}/utils/version-catalog-ast-utils.js +0 -0
@@ -0,0 +1 @@
1
+ export * from './plugin';
@@ -2,4 +2,3 @@
2
2
  export { createDependencies } from './src/plugin-v1/dependencies';
3
3
  /** @deprecated Use `@nx/gradle` instead. This entry will be removed in Nx 24. */
4
4
  export { createNodes, createNodesV2 } from './src/plugin-v1/nodes';
5
- //# sourceMappingURL=plugin-v1.d.ts.map
@@ -5,4 +5,3 @@ export declare const createNodes: import("packages/devkit/dist").CreateNodes<imp
5
5
  */
6
6
  export declare const createNodesV2: import("packages/devkit/dist").CreateNodes<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
7
7
  export declare const createDependencies: import("packages/devkit/dist").CreateDependencies<import("./src/plugin/utils/gradle-plugin-options").GradlePluginOptions>;
8
- //# sourceMappingURL=plugin.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { ProjectGraphProjectNode, TaskGraph } from '@nx/devkit';
2
2
  export declare function getExcludeTasksFromTaskGraph(taskIdsToExcludeDepsOf: Iterable<string>, runningTaskIds: Set<string>, taskGraph: TaskGraph, nodes: Record<string, ProjectGraphProjectNode>, includeDependsOnTasks?: Set<string>): Set<string>;
3
3
  export declare function getAllDependsOnFromTaskGraph(startTaskIds: Iterable<string>, taskGraph: TaskGraph): Set<string>;
4
- //# sourceMappingURL=get-exclude-task.d.ts.map
@@ -12,4 +12,3 @@ export declare function getGradlewTasksToRun(taskIds: string[], taskGraph: TaskG
12
12
  excludeTasks: Set<string>;
13
13
  excludeTestTasks: Set<string>;
14
14
  };
15
- //# sourceMappingURL=gradle-batch.impl.d.ts.map
@@ -3,4 +3,3 @@ import { GradleExecutorSchema } from './schema';
3
3
  export default function gradleExecutor(options: GradleExecutorSchema, context: ExecutorContext): Promise<{
4
4
  success: boolean;
5
5
  }>;
6
- //# sourceMappingURL=gradle.impl.d.ts.map
@@ -12,4 +12,3 @@ export interface Schema {
12
12
  }
13
13
  export declare function ciWorkflowGenerator(tree: Tree, schema: Schema): Promise<void>;
14
14
  export default ciWorkflowGenerator;
15
- //# sourceMappingURL=generator.d.ts.map
@@ -19,4 +19,3 @@ export declare function updateNxPluginVersion(content: string, newVersion: strin
19
19
  * Ensures all build.gradle(.kts) files use the expected version of dev.nx.gradle.project-graph.
20
20
  */
21
21
  export declare function addNxProjectGraphPlugin(tree: Tree, expectedVersion?: string): Promise<void>;
22
- //# sourceMappingURL=gradle-project-graph-plugin-utils.d.ts.map
@@ -3,4 +3,3 @@ import { InitGeneratorSchema } from './schema';
3
3
  export declare function initGenerator(tree: Tree, options: InitGeneratorSchema): Promise<GeneratorCallback>;
4
4
  export declare function updateNxJsonConfiguration(tree: Tree): void;
5
5
  export default initGenerator;
6
- //# sourceMappingURL=init.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): void;
3
- //# sourceMappingURL=add-include-subprojects-tasks.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): void;
3
- //# sourceMappingURL=change-plugin-to-v1.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-0.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-2.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-4.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-5.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-6.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-7.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-8.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export default function update(tree: Tree): Promise<void>;
3
- //# sourceMappingURL=change-plugin-version-0-1-9.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,9 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export default function migrateCreateNodesV2ToCreateNodes(tree: Tree): Promise<void>;
3
+ /**
4
+ * Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
5
+ * when they come from one of the given module specifiers. Only the named
6
+ * bindings are touched — the module specifier, the `import`/`export` keyword,
7
+ * any `type` modifier, and any default import are left untouched.
8
+ */
9
+ export declare function rewriteCreateNodesV2Imports(source: string, specifiers: ReadonlySet<string>): string;
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = migrateCreateNodesV2ToCreateNodes;
4
+ exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
5
+ const devkit_1 = require("@nx/devkit");
6
+ const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
7
+ const DEPRECATED_NAME = 'createNodesV2';
8
+ const CANONICAL_NAME = 'createNodes';
9
+ // Module specifiers from which `@nx/gradle` publicly exposes `createNodesV2`.
10
+ // A named import or re-export of `createNodesV2` from one of these is rewritten
11
+ // to the canonical `createNodes` export.
12
+ const TARGET_SPECIFIERS = new Set([
13
+ '@nx/gradle',
14
+ '@nx/gradle/plugin-v1',
15
+ ]);
16
+ let ts;
17
+ async function migrateCreateNodesV2ToCreateNodes(tree) {
18
+ let touchedCount = 0;
19
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
20
+ if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
21
+ return;
22
+ }
23
+ const original = tree.read(filePath, 'utf-8');
24
+ if (!original || !original.includes(DEPRECATED_NAME)) {
25
+ return;
26
+ }
27
+ const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
28
+ if (updated !== original) {
29
+ tree.write(filePath, updated);
30
+ touchedCount += 1;
31
+ }
32
+ });
33
+ if (touchedCount > 0) {
34
+ devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
35
+ }
36
+ await (0, devkit_1.formatFiles)(tree);
37
+ }
38
+ /**
39
+ * Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
40
+ * when they come from one of the given module specifiers. Only the named
41
+ * bindings are touched — the module specifier, the `import`/`export` keyword,
42
+ * any `type` modifier, and any default import are left untouched.
43
+ */
44
+ function rewriteCreateNodesV2Imports(source, specifiers) {
45
+ ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
46
+ const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
47
+ /* setParentNodes */ true, ts.ScriptKind.TSX);
48
+ const changes = [];
49
+ for (const stmt of sourceFile.statements) {
50
+ if (ts.isImportDeclaration(stmt)) {
51
+ collectImportRewrite(sourceFile, stmt, specifiers, changes);
52
+ }
53
+ else if (ts.isExportDeclaration(stmt)) {
54
+ collectExportRewrite(sourceFile, stmt, specifiers, changes);
55
+ }
56
+ }
57
+ return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
58
+ }
59
+ function isTargetSpecifier(node, specifiers) {
60
+ return ts.isStringLiteral(node) && specifiers.has(node.text);
61
+ }
62
+ function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
63
+ if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
64
+ return;
65
+ }
66
+ const namedBindings = stmt.importClause?.namedBindings;
67
+ // Only `import { ... }` carries renameable named bindings. `import x`,
68
+ // `import * as ns`, and side-effect imports reference the module wholesale
69
+ // and keep working through the `createNodesV2` runtime alias, so we leave
70
+ // them be. A mixed `import def, { createNodesV2 }` still has its named
71
+ // bindings rewritten below — the default binding is untouched.
72
+ if (!namedBindings || !ts.isNamedImports(namedBindings)) {
73
+ return;
74
+ }
75
+ rewriteNamedBindings(sourceFile, namedBindings, changes);
76
+ }
77
+ function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
78
+ if (!stmt.moduleSpecifier ||
79
+ !isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
80
+ return;
81
+ }
82
+ // `export { ... } from '...'` can be rewritten; `export * from '...'` has no
83
+ // named bindings to rename.
84
+ if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
85
+ return;
86
+ }
87
+ rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
88
+ }
89
+ /**
90
+ * Re-renders the `{ ... }` of a named import/export, renaming any
91
+ * `createNodesV2` specifier to `createNodes`. If renaming would collide with a
92
+ * `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
93
+ * the duplicate is dropped. Returns without recording a change when the binding
94
+ * list contains no `createNodesV2`.
95
+ */
96
+ function rewriteNamedBindings(sourceFile, namedBindings, changes) {
97
+ const elements = namedBindings.elements;
98
+ const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
99
+ if (!hasDeprecated) {
100
+ return;
101
+ }
102
+ const seen = new Set();
103
+ const rendered = [];
104
+ for (const el of elements) {
105
+ const text = renderSpecifier(el);
106
+ if (!seen.has(text)) {
107
+ seen.add(text);
108
+ rendered.push(text);
109
+ }
110
+ }
111
+ const start = namedBindings.getStart(sourceFile);
112
+ changes.push({
113
+ type: devkit_1.ChangeType.Delete,
114
+ start,
115
+ length: namedBindings.getEnd() - start,
116
+ }, {
117
+ type: devkit_1.ChangeType.Insert,
118
+ index: start,
119
+ text: `{ ${rendered.join(', ')} }`,
120
+ });
121
+ }
122
+ function renderSpecifier(el) {
123
+ const typePrefix = el.isTypeOnly ? 'type ' : '';
124
+ const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
125
+ // `{ name }` — no alias, so the local binding follows the rename.
126
+ if (!el.propertyName) {
127
+ return `${typePrefix}${rename(el.name.text)}`;
128
+ }
129
+ // `{ propertyName as name }` — only the imported (left) side is renamed; the
130
+ // local alias is preserved. A now-redundant alias such as
131
+ // `createNodesV2 as createNodes` collapses to `createNodes`.
132
+ const canonicalImported = rename(el.propertyName.text);
133
+ const localName = el.name.text;
134
+ return canonicalImported === localName
135
+ ? `${typePrefix}${localName}`
136
+ : `${typePrefix}${canonicalImported} as ${localName}`;
137
+ }
@@ -0,0 +1,25 @@
1
+ #### Rename `createNodesV2` imports to `createNodes`
2
+
3
+ `@nx/gradle` renamed its primary inferred-plugin export from `createNodesV2` to `createNodes`. The `createNodesV2` name is preserved as a deprecated alias for now, but new code should use `createNodes`.
4
+
5
+ This migration scans every `.ts`, `.tsx`, `.cts`, and `.mts` file in your workspace and rewrites named imports and re-exports of `createNodesV2` from `@nx/gradle` and `@nx/gradle/plugin-v1` to `createNodes`.
6
+
7
+ #### Sample Code Changes
8
+
9
+ ##### Before
10
+
11
+ ```ts
12
+ import { createNodesV2 } from '@nx/gradle';
13
+ ```
14
+
15
+ ##### After
16
+
17
+ ```ts
18
+ import { createNodes } from '@nx/gradle';
19
+ ```
20
+
21
+ Aliases are preserved (`createNodesV2 as cn` becomes `createNodes as cn`), and if a file already imports both names (`{ createNodes, createNodesV2 }`) the redundant binding is dropped.
22
+
23
+ #### What is not rewritten
24
+
25
+ Only static `import`/`export` named bindings from `@nx/gradle` and `@nx/gradle/plugin-v1` are rewritten. Namespace imports, dynamic `import(...)`, `require(...)` destructuring, and property access such as `plugin.createNodesV2` are left untouched — they keep working through the `createNodesV2` runtime alias. Update those by hand if you want to drop the deprecated name everywhere.
@@ -1,4 +1,3 @@
1
1
  import { CreateDependencies } from '@nx/devkit';
2
2
  import { GradlePluginOptions } from './utils/gradle-plugin-options';
3
3
  export declare const createDependencies: CreateDependencies<GradlePluginOptions>;
4
- //# sourceMappingURL=dependencies.d.ts.map
@@ -16,4 +16,3 @@ export declare const makeCreateNodesForGradleConfigFile: (projects: Record<strin
16
16
  externalNodes: Record<string, ProjectGraphExternalNode>;
17
17
  }>;
18
18
  export {};
19
- //# sourceMappingURL=nodes.d.ts.map
@@ -26,4 +26,3 @@ export declare function getCurrentBuildFiles(): string[];
26
26
  */
27
27
  export declare function populateProjectGraph(workspaceRoot: string, gradlewFiles: string[], options: GradlePluginOptions): Promise<void>;
28
28
  export declare function processNxProjectGraph(projectGraphLines: string[]): ProjectGraphReport;
29
- //# sourceMappingURL=get-project-graph-from-gradle-plugin.d.ts.map
@@ -6,4 +6,3 @@ import { GradlePluginOptions } from './gradle-plugin-options';
6
6
  export declare function cancelPendingProjectGraphRequest(): void;
7
7
  export declare function getGraphTimeoutMs(): number;
8
8
  export declare function getNxProjectGraphLines(gradlewFile: string, gradleConfigHash: string, gradlePluginOptions: GradlePluginOptions): Promise<string[]>;
9
- //# sourceMappingURL=get-project-graph-lines.d.ts.map
@@ -6,4 +6,3 @@ export interface GradlePluginOptions {
6
6
  [taskTargetName: string]: string | undefined | boolean;
7
7
  }
8
8
  export declare function normalizeOptions(options: GradlePluginOptions): GradlePluginOptions;
9
- //# sourceMappingURL=gradle-plugin-options.d.ts.map
@@ -4,4 +4,3 @@ import { CreateDependencies } from '@nx/devkit';
4
4
  * Switch to the default `@nx/gradle` plugin.
5
5
  */
6
6
  export declare const createDependencies: CreateDependencies;
7
- //# sourceMappingURL=dependencies.d.ts.map
@@ -26,4 +26,3 @@ export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleRe
26
26
  This function will change to the v2 function in Nx 20.
27
27
  */
28
28
  export declare const createNodes: CreateNodes<GradlePluginOptions>;
29
- //# sourceMappingURL=nodes.d.ts.map
@@ -34,4 +34,3 @@ export declare function getCurrentGradleReport(): GradleReport;
34
34
  export declare function populateGradleReport(workspaceRoot: string, gradlewFiles: string[]): Promise<void>;
35
35
  export declare function processProjectReports(projectReportLines: string[]): GradleReport;
36
36
  export declare function processGradleDependencies(depsFile: string): Set<string>;
37
- //# sourceMappingURL=get-gradle-report.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns project report lines
5
5
  */
6
6
  export declare function getProjectReportLines(gradlewFile: string): Promise<string[]>;
7
- //# sourceMappingURL=get-project-report-lines.d.ts.map
@@ -27,4 +27,3 @@ export declare function getCustomGradleExecutableDirectoryFromPlugin(nxJson: NxJ
27
27
  export declare function findGradlewFile(filePathToSearch: string, workspaceRoot: string, customExecutableDirectory?: string): string;
28
28
  export declare function findGradlewUsingFilePathTraversal(filePathToSearch: string, workspaceRoot: string, currentSearchPath?: string): string;
29
29
  export declare function findGradlewUsingCustomExecutableDirectory(customGradleExecutableDirectory: string, workspaceRoot: string): string;
30
- //# sourceMappingURL=exec-gradle.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Tree } from '@nx/devkit';
2
2
  export declare function hasGradlePlugin(tree: Tree): boolean;
3
- //# sourceMappingURL=has-gradle-plugin.d.ts.map
@@ -16,4 +16,3 @@ export declare function splitConfigFiles(files: readonly string[]): {
16
16
  testFiles: string[];
17
17
  projectRoots: string[];
18
18
  };
19
- //# sourceMappingURL=split-config-files.d.ts.map
@@ -17,4 +17,3 @@ export declare function extractPluginVersionFromCatalogAst(sourceText: string, p
17
17
  * Updates Nx plugin version in all catalog files using AST-based approach
18
18
  */
19
19
  export declare function updateNxPluginVersionInCatalogsAst(tree: Tree, expectedVersion: string): Promise<boolean>;
20
- //# sourceMappingURL=version-catalog-ast-utils.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const gradleProjectGraphPluginName = "dev.nx.gradle.project-graph";
3
3
  export declare const gradleProjectGraphVersion = "0.1.21";
4
- //# sourceMappingURL=versions.d.ts.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gradleProjectGraphVersion = exports.gradleProjectGraphPluginName = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
4
+ const path_1 = require("path");
5
+ exports.nxVersion = require((0, path_1.join)('@nx/gradle', 'package.json')).version;
5
6
  exports.gradleProjectGraphPluginName = 'dev.nx.gradle.project-graph';
6
7
  exports.gradleProjectGraphVersion = '0.1.21';
package/executors.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "executors": {
3
3
  "gradle": {
4
- "batchImplementation": "./src/executors/gradle/gradle-batch.impl",
5
- "implementation": "./src/executors/gradle/gradle.impl",
6
- "schema": "./src/executors/gradle/schema.json",
4
+ "batchImplementation": "./dist/src/executors/gradle/gradle-batch.impl",
5
+ "implementation": "./dist/src/executors/gradle/gradle.impl",
6
+ "schema": "./dist/src/executors/gradle/schema.json",
7
7
  "description": "Runs gradle tasks via the Gradle Tooling API or by invoking gradlew.",
8
8
  "preferBatch": true
9
9
  }
package/generators.json CHANGED
@@ -3,14 +3,14 @@
3
3
  "version": "0.1",
4
4
  "generators": {
5
5
  "init": {
6
- "factory": "./src/generators/init/init#initGenerator",
7
- "schema": "./src/generators/init/schema.json",
6
+ "factory": "./dist/src/generators/init/init#initGenerator",
7
+ "schema": "./dist/src/generators/init/schema.json",
8
8
  "description": "Initializes a Gradle project in the current workspace",
9
9
  "hidden": true
10
10
  },
11
11
  "ci-workflow": {
12
- "factory": "./src/generators/ci-workflow/generator",
13
- "schema": "./src/generators/ci-workflow/schema.json",
12
+ "factory": "./dist/src/generators/ci-workflow/generator",
13
+ "schema": "./dist/src/generators/ci-workflow/schema.json",
14
14
  "description": "Setup a CI Workflow to run Nx in CI"
15
15
  }
16
16
  }