spring-projects / spring-projects/spring-modulith

Allow configurable ordering of modules at the same dependency level

Open
#1,558 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.2k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ApplicationModules and ModuleSorter, focusing on the topological ordering and the lexicographic ordering by ApplicationModuleIdentifier within each level. Trace how ApplicationModuleInitializers consume that order, then define an extension point that preserves dependency constraints while leaving the default ordering unchanged. Done means callers can deterministically customize same-level module ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.