Remove 'gradle-executable' input param

This commit is contained in:
daz 2024-01-04 13:33:26 -07:00
parent 345641a213
commit a36d6f820b
No known key found for this signature in database
5 changed files with 1 additions and 21 deletions

View file

@ -28,7 +28,7 @@ function validateGradleWrapper(buildRootDirectory: string): void {
function verifyExists(file: string, description: string): void {
if (!fs.existsSync(file)) {
throw new Error(
`Cannot locate ${description} at '${file}'. Specify 'gradle-version' or 'gradle-executable' for projects without Gradle wrapper configured.`
`Cannot locate ${description} at '${file}'. Specify 'gradle-version' for projects without Gradle wrapper configured.`
)
}
}

View file

@ -49,10 +49,6 @@ export function getGradleVersion(): string {
return core.getInput('gradle-version')
}
export function getGradleExecutable(): string {
return core.getInput('gradle-executable')
}
export function getArguments(): string[] {
const input = core.getInput('arguments')
return parseArgsStringToArgv(input)

View file

@ -22,11 +22,6 @@ export async function provisionGradle(): Promise<string | undefined> {
return addToPath(await installGradle(gradleVersion))
}
const gradleExecutable = params.getGradleExecutable()
if (gradleExecutable !== '') {
return addToPath(gradleExecutable)
}
return undefined
}