mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-23 17:22:01 +00:00
Let finding wrapper jars be predictable
Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
parent
f8dcae7055
commit
4432e91432
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ export async function findWrapperJars(baseDir: string): Promise<string[]> {
|
||||||
return files
|
return files
|
||||||
.filter(file => file.endsWith('gradle-wrapper.jar'))
|
.filter(file => file.endsWith('gradle-wrapper.jar'))
|
||||||
.map(wrapperJar => path.relative(baseDir, wrapperJar))
|
.map(wrapperJar => path.relative(baseDir, wrapperJar))
|
||||||
|
.sort((a, b) => a.localeCompare(b))
|
||||||
}
|
}
|
||||||
|
|
||||||
async function recursivelyListFiles(baseDir: string): Promise<string[]> {
|
async function recursivelyListFiles(baseDir: string): Promise<string[]> {
|
||||||
|
|
Loading…
Reference in a new issue