Skip to content

Allow configurable ordering of modules at the same dependency level #1558

@ciberkleid

Description

@ciberkleid

ApplicationModules,ModuleSorter orders modules topologically, then orders all modules within the same dependency level (siblings, cousins...) lexicographically by ApplicationModuleIdentifier. Currently, the only way to customize ordering among modules on the same level is to rename the modules or force a dependency in order to impose a hierarchy between them.

Request: Add an extension point to customize ordering within each topological level while preserving dependency constraints. This would keep default behavior unchanged while allowing deterministic, intentional ordering among all modules that share a dependency level.

Use case: This would help, for example, control the order in which ApplicationModuleInitializers execute across modules in the same dependency level that otherwise have no hierarchical relationship between them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions