From bf26498bc4f43c6c9a9d03001a5101ad06e0d2bf Mon Sep 17 00:00:00 2001 From: Vladimir Orany Date: Mon, 9 Dec 2019 10:44:21 +0100 Subject: [PATCH 1/2] ignore version called "wrapper" fixes #5 --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } From c8b76ea3f70278873d8468f85314bb99288f5b59 Mon Sep 17 00:00:00 2001 From: Vladimir Orany Date: Mon, 9 Dec 2019 10:46:30 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) 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. |