Skip to content

Commit 4b7cc6e

Browse files
authored
Differentiate Gradle 8.1 from 8.10 when checking version (#358)
Fixes #359
1 parent 0873530 commit 4b7cc6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/integ-test-provision-gradle-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
gradle: ["8.10", 8.9, 7.6.4, 6.9.4, 5.6.4, 4.10.3, 3.5.1]
78+
gradle: ["8.10", 8.9, 8.1, 7.6.4, 6.9.4, 5.6.4, 4.10.3, 3.5.1]
7979
os: ${{fromJSON(inputs.runner-os)}}
8080
include:
8181
- java-version: 11

sources/src/execution/provision.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async function findGradleVersionOnPath(versionInfo: GradleVersionInfo): Promise<
197197
const gradleExecutable = await which('gradle', {nothrow: true})
198198
if (gradleExecutable) {
199199
const output = await exec.getExecOutput(gradleExecutable, ['-v'], {silent: true})
200-
if (output.stdout.includes(`Gradle ${versionInfo.version}`)) {
200+
if (output.stdout.includes(`\nGradle ${versionInfo.version}\n`)) {
201201
return gradleExecutable
202202
}
203203
}

0 commit comments

Comments
 (0)