spring-projects / spring-projects/spring-modulith

Feature request: Allow to have one central configuration module

Open
#1,330 0 comments 3 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

It would be good to specify one (or more) central configuration packages in the @Modulithic or @Modulith application.

@Modulithic(configModules = ["config"])

This module/s has/have access to all other modules and even to internal classes that are not public (classes that do not reside in the top level package of a module and also do not reside in a @NamedInterface-package)

Yes, I think this is against the thought of modularization, but the advantage of the Modulith against MicroServices is, that I can still have a centralized configuration for the whole application without creating too many NamedInterfaces that could also be accesses by other modules, even if they should not access it. Goal is to keep this beans / classes private (without @NamedInterface) but still be able to configure them via a central configuration.

Similar to open sharedModules, but the other way around.

Open for discussion. Thanks!

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 by reviewing how @Modulithic and @Modulith currently define sharedModules and module boundaries. Determine how central configuration packages would access private classes without exposing them through @NamedInterface, and define tests that verify the access rules and configuration behavior.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.