Let finding wrapper jars be predictable

Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
Paul Merlin 2020-01-11 15:33:16 +01:00
parent f8dcae7055
commit 4432e91432

View file

@ -9,6 +9,7 @@ export async function findWrapperJars(baseDir: string): Promise<string[]> {
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<string[]> {