Skip to content

Commit

Permalink
chore(Gradle): Sort dependency tasks for really deterministic output
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Apr 29, 2024
1 parent d300540 commit 7ec5fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
// all dependencies at once is beneficial, e.g. for debugging version conflict resolution.
// [1]: https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html#sec:listing_dependencies
tasks.register("allDependencies") {
val dependenciesTasks = allprojects.map { it.tasks.named<DependencyReportTask>("dependencies").get() }
val dependenciesTasks = allprojects.map { it.tasks.named<DependencyReportTask>("dependencies").get() }.sorted()
dependsOn(dependenciesTasks)

// Ensure deterministic output by requiring to run tasks after each other in always the same order.
Expand Down

0 comments on commit 7ec5fa9

Please sign in to comment.