@nx/gradle 20.7.0-canary.20250319-59624c2 → 20.7.0-canary.20250321-cad4d26

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": "20.7.0-canary.20250319-59624c2",
3
+ "version": "20.7.0-canary.20250321-cad4d26",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Gradle allows Gradle tasks to be run through Nx",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "20.7.0-canary.20250319-59624c2"
37
+ "@nx/devkit": "20.7.0-canary.20250321-cad4d26"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -4,8 +4,6 @@ exports.newLineSeparator = exports.fileSeparator = void 0;
4
4
  exports.getProjectReportLines = getProjectReportLines;
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const exec_gradle_1 = require("./exec-gradle");
7
- const fs_1 = require("fs");
8
- const path_1 = require("path");
9
7
  exports.fileSeparator = process.platform.startsWith('win')
10
8
  ? 'file:///'
11
9
  : 'file://';
@@ -19,12 +17,7 @@ exports.newLineSeparator = process.platform.startsWith('win')
19
17
  */
20
18
  async function getProjectReportLines(gradlewFile) {
21
19
  let projectReportBuffer;
22
- // if there is no build.gradle or build.gradle.kts file, we cannot run the projectReport nor projectReportAll task
23
- if (!(0, fs_1.existsSync)((0, path_1.join)((0, path_1.dirname)(gradlewFile), 'build.gradle')) &&
24
- !(0, fs_1.existsSync)((0, path_1.join)((0, path_1.dirname)(gradlewFile), 'build.gradle.kts'))) {
25
- devkit_1.logger.warn(`Could not find build file near ${gradlewFile}. Please run 'nx generate @nx/gradle:init' to generate the necessary tasks.`);
26
- return [];
27
- }
20
+ // Attempt to run projectReport or projectReportAll task, regardless of build.gradle or build.gradle.kts location
28
21
  try {
29
22
  projectReportBuffer = await (0, exec_gradle_1.execGradleAsync)(gradlewFile, [
30
23
  'projectReportAll',