@nx/gradle 23.3.0-beta.7 → 23.3.0-beta.9
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 +1 -1
- package/dist/batch-runner/build/libs/gradle-batch-runner-all.jar +0 -0
- package/dist/batch-runner/build/libs/gradle-batch-runner.jar +0 -0
- package/dist/src/generators/init/gradle-project-graph-plugin-utils.js +3 -1
- package/dist/src/plugin-v1/utils/get-gradle-report.js +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](<>)
|
|
13
13
|
[](http://commitizen.github.io/cz-cli/)
|
|
14
14
|
[](https://go.nx.dev/community)
|
|
15
|
-
[](https://nx.dev/nx-cloud)
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
|
|
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}/${
|
|
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.
|
|
3
|
+
"version": "23.3.0-beta.9",
|
|
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.
|
|
78
|
+
"@nx/devkit": "23.3.0-beta.9",
|
|
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.
|
|
83
|
+
"nx": "23.3.0-beta.9"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|