@nx/gradle 23.3.0-beta.7 → 23.3.0-beta.8

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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](<>)
13
13
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
14
14
  [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
15
- [![Nx Sandboxing](https://staging.nx.app/workspaces/62d013ea0852fe0a2df74438/sandbox-badge.svg)](https://nx.dev/docs/features/ci-features/sandboxing)
15
+ [![Hours saved](https://img.shields.io/endpoint?url=https%3A%2F%2Fstaging.nx.app%2Fnx-cloud%2Fbadge%2F62d013ea0852fe0a2df74438%2Fhours-saved.json)](https://nx.dev/nx-cloud)
16
16
 
17
17
  </div>
18
18
 
@@ -4,9 +4,11 @@ exports.addBuildGradleFileNextToSettingsGradle = addBuildGradleFileNextToSetting
4
4
  exports.extractNxPluginVersion = extractNxPluginVersion;
5
5
  exports.updateNxPluginVersion = updateNxPluginVersion;
6
6
  exports.addNxProjectGraphPlugin = addNxProjectGraphPlugin;
7
+ const tslib_1 = require("tslib");
7
8
  const devkit_1 = require("@nx/devkit");
8
9
  const versions_1 = require("../../utils/versions");
9
10
  const path_1 = require("path");
11
+ const posix = tslib_1.__importStar(require("node:path/posix"));
10
12
  const exec_gradle_1 = require("../../utils/exec-gradle");
11
13
  const version_catalog_ast_utils_1 = require("../../utils/version-catalog-ast-utils");
12
14
  /**
@@ -129,7 +131,7 @@ async function findVersionCatalogPluginAlias(gradleFilePath, tree) {
129
131
  }
130
132
  // Fallback: search for any version catalog in subdirectories
131
133
  const versionCatalogFiles = await (0, devkit_1.globAsync)(tree, [
132
- (0, path_1.join)(gradleDir, '**/libs.versions.toml'),
134
+ posix.join(gradleDir, '**/libs.versions.toml'),
133
135
  ]);
134
136
  for (const versionCatalogPath of versionCatalogFiles) {
135
137
  const catalogContent = tree.read(versionCatalogPath, 'utf-8');
@@ -175,7 +175,7 @@ function processProjectReports(projectReportLines) {
175
175
  if (line.includes('Dir: ')) {
176
176
  const [dirName, dirPath] = line.split(': ');
177
177
  const taskName = dirName.replace('Dir', '');
178
- outputDirMap.set(taskName, `{workspaceRoot}/${(0, node_path_1.relative)(devkit_1.workspaceRoot, dirPath)}`);
178
+ outputDirMap.set(taskName, `{workspaceRoot}/${(0, devkit_1.normalizePath)((0, node_path_1.relative)(devkit_1.workspaceRoot, dirPath))}`);
179
179
  }
180
180
  if (line.includes(': task ')) {
181
181
  const [task] = line.split(': task ');
@@ -186,9 +186,9 @@ function processProjectReports(projectReportLines) {
186
186
  continue;
187
187
  }
188
188
  const buildFile = (0, devkit_1.normalizePath)((0, node_path_1.relative)(devkit_1.workspaceRoot, absBuildFilePath));
189
- const buildDir = (0, node_path_1.relative)(devkit_1.workspaceRoot, absBuildDirPath);
189
+ const buildDir = (0, devkit_1.normalizePath)((0, node_path_1.relative)(devkit_1.workspaceRoot, absBuildDirPath));
190
190
  outputDirMap.set('build', `{workspaceRoot}/${buildDir}`);
191
- outputDirMap.set('classes', `{workspaceRoot}/${(0, node_path_1.join)(buildDir, 'classes')}`);
191
+ outputDirMap.set('classes', `{workspaceRoot}/${buildDir}/classes`);
192
192
  gradleFileToOutputDirsMap.set(buildFile, outputDirMap);
193
193
  gradleFileToGradleProjectMap.set(buildFile, gradleProject);
194
194
  gradleProjectToProjectName.set(gradleProject, projectName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/gradle",
3
- "version": "23.3.0-beta.7",
3
+ "version": "23.3.0-beta.8",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -75,12 +75,12 @@
75
75
  "supportsOptionalMigrations": true
76
76
  },
77
77
  "dependencies": {
78
- "@nx/devkit": "23.3.0-beta.7",
78
+ "@nx/devkit": "23.3.0-beta.8",
79
79
  "toml-eslint-parser": "^0.10.0",
80
80
  "tslib": "^2.3.0"
81
81
  },
82
82
  "devDependencies": {
83
- "nx": "23.3.0-beta.7"
83
+ "nx": "23.3.0-beta.8"
84
84
  },
85
85
  "publishConfig": {
86
86
  "access": "public"