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
moduleC and moduleD can't get observed when using spring-modulith-starter-insight.
Inspecting the source code, SpringBootApplicationRuntime.isApplicationClass considers additional AutoConfigurationPackages instead of @Modulithic.additionalPackages.
I can get moduleC and moduleD observed by annotating Application class with @AutoConfigurationPackage(basePackages = "com.example.library"), but I think this behavior is not intuitive. Is this purposed?
The text was updated successfully, but these errors were encountered:
odrotbohm
changed the title
Application Modules in @Modulithic.additionalPackages can't get observed.
Types residing in packages registered via @Modulithic(additionalPackages = "…") not observed
May 20, 2024
Previously, we had a variety of places calculating the overall packages to inspect for types. This is now all consolidated into the ModulithMetadata abstraction exposing them directly.
The previous change unfortunately altered the CacheKey type in a way that it does not result in equal instances for the same set of parameters, primarily because SingletonSupplier does not implement equals(…)/hashCode(). We now resort to include the ModulithMetadata source in the equals(…) / hashCode() calculation rather than the ModulithMetadata instance itself. This also avoids annotation processing during CacheKey instance creation.
Provided the following package structure:
moduleC
andmoduleD
can't get observed when usingspring-modulith-starter-insight
.Inspecting the source code,
SpringBootApplicationRuntime.isApplicationClass
considers additionalAutoConfigurationPackages
instead of@Modulithic.additionalPackages
.I can get moduleC and moduleD observed by annotating
Application
class with@AutoConfigurationPackage(basePackages = "com.example.library")
, but I think this behavior is not intuitive. Is this purposed?The text was updated successfully, but these errors were encountered: