@nx/gradle 19.7.2 → 19.7.3

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": "19.7.2",
3
+ "version": "19.7.3",
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": "19.7.2"
37
+ "@nx/devkit": "19.7.3"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
@@ -133,8 +133,11 @@ function processProjectReports(projectReportLines) {
133
133
  absBuildDirPath = line.substring('buildDir: '.length);
134
134
  }
135
135
  if (line.startsWith('childProjects: ')) {
136
- const childProjects = line.substring('childProjects: {'.length); // remove curly braces {} around childProjects
137
- gradleProjectToChildProjects.set(gradleProject, childProjects.split(',').map((c) => c.trim().split('=')[0]) // e.g. get project name from text like "app=project ':app', mylibrary=project ':mylibrary'"
136
+ const childProjects = line.substring('childProjects: {'.length, line.length - 1); // remove curly braces {} around childProjects
137
+ gradleProjectToChildProjects.set(gradleProject, childProjects
138
+ .split(',')
139
+ .map((c) => c.trim().split('=')[0])
140
+ .filter(Boolean) // e.g. get project name from text like "app=project ':app', mylibrary=project ':mylibrary'"
138
141
  );
139
142
  }
140
143
  if (line.includes('Dir: ')) {
@@ -154,7 +157,7 @@ function processProjectReports(projectReportLines) {
154
157
  gradleFileToOutputDirsMap.set(buildFile, outputDirMap);
155
158
  gradleFileToGradleProjectMap.set(buildFile, gradleProject);
156
159
  gradleProjectToProjectName.set(gradleProject, projectName);
157
- gradleProjectNameToProjectRootMap.set(projectName, (0, path_1.dirname)(buildFile));
160
+ gradleProjectNameToProjectRootMap.set(gradleProject, (0, path_1.dirname)(buildFile));
158
161
  }
159
162
  if (line.endsWith('taskReport')) {
160
163
  const gradleProject = line.substring('> Task '.length, line.length - ':taskReport'.length);