Skip to content

Commit

Permalink
feat(executors): add NX_GRADLE_CLI_OPTS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Jul 29, 2023
1 parent 27ebe79 commit 8294cc8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gradle/src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ import * as path from 'path';

export function getExecutable() {
const isWin = process.platform === 'win32';
return isWin ? 'gradlew.bat' : './gradlew';
let executable = isWin ? 'gradlew.bat' : './gradlew';

if (process.env['NX_GRADLE_CLI_OPTS']) {
executable += ` ${process.env['NX_GRADLE_CLI_OPTS']}`;
}

return executable;
}

export function getProjectPath(context: ExecutorContext) {
Expand Down

0 comments on commit 8294cc8

Please sign in to comment.