From 4432e914324e8b3c36d86e6d6b4eb7215c8b43b5 Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Sat, 11 Jan 2020 15:33:16 +0100 Subject: [PATCH] Let finding wrapper jars be predictable Signed-off-by: Paul Merlin --- src/find.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/find.ts b/src/find.ts index f1b5f72..ed2a7eb 100644 --- a/src/find.ts +++ b/src/find.ts @@ -9,6 +9,7 @@ export async function findWrapperJars(baseDir: string): Promise { return files .filter(file => file.endsWith('gradle-wrapper.jar')) .map(wrapperJar => path.relative(baseDir, wrapperJar)) + .sort((a, b) => a.localeCompare(b)) } async function recursivelyListFiles(baseDir: string): Promise {