UNPKG

@nx/gradle

Version:

The Nx Plugin for Gradle allows Gradle tasks to be run through Nx

24 lines (23 loc) 1.18 kB
import { ExecFileOptions } from 'node:child_process'; /** * For gradle command, it needs to be run from the directory of the gradle binary * @returns gradle binary file name */ export declare function getGradleExecFile(): string; /** * This function executes gradle with the given arguments * @param gradleBinaryPath absolute path to gradle binary * @param args args passed to gradle * @param execOptions exec options * @returns promise with the stdout buffer */ export declare function execGradleAsync(gradleBinaryPath: string, args: ReadonlyArray<string>, execOptions?: ExecFileOptions): Promise<Buffer>; /** * This function recursively finds the nearest gradlew file in the workspace * @param originalFileToSearch the original file to search for * @param wr workspace root * @param currentSearchPath the path to start searching for gradlew file * @returns the relative path of the gradlew file to workspace root, throws an error if gradlew file is not found * It will return gradlew.bat file on windows and gradlew file on other platforms */ export declare function findGraldewFile(originalFileToSearch: string, wr?: string, currentSearchPath?: string): string;