fix(gradle): fix max buffer for gradle stdout (#29864)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
This commit is contained in:
parent
247dc296a5
commit
98e79ee1a7
@ -195,7 +195,7 @@ async function createGradleProject(
|
||||
let tasks: GradleTask[] = [];
|
||||
tasksSet.forEach((taskName) => {
|
||||
tasks.push({
|
||||
type: tasksTypeMap.get(taskName) as string,
|
||||
type: tasksTypeMap?.get(taskName) as string,
|
||||
name: taskName,
|
||||
});
|
||||
});
|
||||
|
||||
@ -2,6 +2,7 @@ import { AggregateCreateNodesError, workspaceRoot } from '@nx/devkit';
|
||||
import { ExecFileOptions, execFile } from 'node:child_process';
|
||||
import { existsSync } from 'node:fs';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { LARGE_BUFFER } from 'nx/src/executors/run-commands/run-commands.impl';
|
||||
|
||||
/**
|
||||
* For gradle command, it needs to be run from the directory of the gradle binary
|
||||
@ -29,6 +30,7 @@ export function execGradleAsync(
|
||||
shell: true,
|
||||
windowsHide: true,
|
||||
env: process.env,
|
||||
maxBuffer: LARGE_BUFFER,
|
||||
...execOptions,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user