diff --git a/README.md b/README.md index 4cfdeec..4a576b8 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ Moreover, you can use the following aliases: | Alias | Selects | | --- |---| +| `wrapper` | The Gradle wrapper's version (default, useful for matrix builds) | | `current` | The current [stable release](https://gradle.org/install/) | | `rc` | The current [release candidate](https://gradle.org/release-candidate/) if any, otherwise fallback to `current` | | `nightly` | The latest [nightly](https://gradle.org/nightly/), fails if none. | diff --git a/src/main.ts b/src/main.ts index 62dbeb1..680b078 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,7 +39,7 @@ run(); async function resolveGradleExecutable(baseDirectory: string): Promise { const gradleVersion = inputOrNull("gradle-version"); - if (gradleVersion != null) { + if (gradleVersion != null && gradleVersion != "wrapper") { return path.resolve(await provision.gradleVersion(gradleVersion)) }