spring-projects / spring-modulith

Modular applications with Spring Boot
https://spring.io/projects/spring-modulith
Apache License 2.0
779 stars 129 forks source link

`ApplicationModules` bootstrap failing for non-unique base packages #797

Closed odrotbohm closed 3 weeks ago

odrotbohm commented 3 weeks ago

If the scan for application modules contains non-unique module base packages, the ApplicationModules bootstrap will fail when collecting the ApplicationModule instances into a map in the former's constructor. A cause of this could be an @Modulithic declaring additionalPackages that might overlap with the package the annotation is used on.