From d8f70f069110e659756236001f055a6538db7152 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 13 Dec 2024 19:40:44 +0100 Subject: [PATCH] feat(aosd): Sort output by `componentName` for easier comparison This eases comparison with the files generated by [1]. [1]: https://gitlab.com/digitalwerk/tools/spdx2aosd Signed-off-by: Sebastian Schuberth --- plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt b/plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt index 21d2986af3660..8c81048611543 100644 --- a/plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt +++ b/plugins/reporters/aosd/src/main/kotlin/Aosd21Reporter.kt @@ -62,6 +62,7 @@ class Aosd21Reporter(override val descriptor: PluginDescriptor = Aosd21ReporterF indexedPackages[it]?.index?.toLong() }, components = indexedPackages.toComponents(input, project) + .toSortedSet(compareBy { it.componentName }) ) val projectName = project.id.toPath("-")