You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use spring-modulith in a cross application (cross team) way, where modules may be shared by multiple applications (don't be confused with @Modulithic.sharedModules).
Providing following project:
my-app // my-app is maintained by team A
├─ pom.xml
├─ src/main/java
│ ├─ com.example.app
│ │ ├─ Application.java
│ │ ├─ moduleA/
│ │ ├─ moduleB/
├─ Maven Dependencies
│ ├─ shared-module-foo.jar // shared modules maintained by other teams. e.g. team B
│ │ ├─ com.example.shared.foo
│ ├─ shared-module-bar.jar
│ │ ├─ com.example.shared.bar
│ ├─ spring-boot-starter-shared-modules.jar
Currently, shared modules foo and bar can be registered by annotating Application with @Modulithic(additionalPackages = { "com.example.shared" }) .
But I want shared modules get registered in a auto configuration way, instead of additionalPackages, because team A don't need to know the detail of shared modules and shared modules even don't share same parent package.
Moreover, shared modules should use EXPLICITLY_ANNOTATEDApplicationModuleDetectionStrategy, while modules in com.example.app keep using the default one - DIRECT_SUB_PACKAGES.
Any suggestion?
The text was updated successfully, but these errors were encountered:
I want to use
spring-modulith
in a cross application (cross team) way, where modules may be shared by multiple applications (don't be confused with@Modulithic.sharedModules
).Providing following project:
Currently, shared modules
foo
andbar
can be registered by annotatingApplication
with@Modulithic(additionalPackages = { "com.example.shared" })
.But I want shared modules get registered in a
auto configuration
way, instead ofadditionalPackages
, because team A don't need to know the detail of shared modules and shared modules even don't share same parent package.I want to implement something like:
Moreover, shared modules should use
EXPLICITLY_ANNOTATED
ApplicationModuleDetectionStrategy
, while modules incom.example.app
keep using the default one -DIRECT_SUB_PACKAGES
.Any suggestion?
The text was updated successfully, but these errors were encountered: