Rafa Gómez
06/18/2024, 5:19 PM| src
| contexts
| users
| user
| application
| domain
| primaryadapter
| secondaryadapter
| profile
| application
| domain
| primaryadapter
| secondaryadapter
| bookings
...
With my limited knowlegdge of Konsist, I'd need to create a Layer
for each layer inside each module (user, profile) right? Is there a way to create it at least for the whole bounded context?Rafa Gómez
06/18/2024, 5:22 PMLayer("Data", "com.myapp.users.user.application..")
Layer("Data", "com.myapp.users.profile.application..")
And repeat this infinitely but with our modular monolith this'd be a nightmare and someone would forget to create the new layers when creating/refactoring a modulePoisonedYouth
06/18/2024, 7:04 PMval application = Layer("application", "com.myapp.users..application..")
val domain = Layer("domain", "com.myapp.users..domain..")
Rafa Gómez
06/18/2024, 7:28 PMLayer Domain must be defined by package ending with '..'. Now: com.myapp.users.user..domain..
Looking into the Layer implementation, there's a regex that forces the string to end after two dots. Is this working for you?PoisonedYouth
06/18/2024, 7:35 PMRafa Gómez
06/18/2024, 7:39 PMRafa Gómez
06/18/2024, 7:39 PMPoisonedYouth
06/18/2024, 7:45 PM