Skip to content

Commit

Permalink
Differentiate Gradle 8.1 from 8.10 when checking version (#358)
Browse files Browse the repository at this point in the history
Fixes #359
  • Loading branch information
bigdaz authored Aug 26, 2024
1 parent 0873530 commit 4b7cc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integ-test-provision-gradle-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
strategy:
fail-fast: false
matrix:
gradle: ["8.10", 8.9, 7.6.4, 6.9.4, 5.6.4, 4.10.3, 3.5.1]
gradle: ["8.10", 8.9, 8.1, 7.6.4, 6.9.4, 5.6.4, 4.10.3, 3.5.1]
os: ${{fromJSON(inputs.runner-os)}}
include:
- java-version: 11
Expand Down
2 changes: 1 addition & 1 deletion sources/src/execution/provision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async function findGradleVersionOnPath(versionInfo: GradleVersionInfo): Promise<
const gradleExecutable = await which('gradle', {nothrow: true})
if (gradleExecutable) {
const output = await exec.getExecOutput(gradleExecutable, ['-v'], {silent: true})
if (output.stdout.includes(`Gradle ${versionInfo.version}`)) {
if (output.stdout.includes(`\nGradle ${versionInfo.version}\n`)) {
return gradleExecutable
}
}
Expand Down

0 comments on commit 4b7cc6e

Please sign in to comment.