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

Metadata declared in jMolecules' @Module` not considered #846

Open xenoterracide opened 4 days ago

xenoterracide commented 4 days ago

log output

> Logical name: model
> Base package: com.xenoterracide.security.model
> Spring beans:
  o ….controller.RegistrationCtrlr
  o ….user.UserRepository
    at com.xenoterracide.test/com.xenoterracide.test.ApplicationTest.lambda$modulith$0(ApplicationTest.java:26)

my package definition

/**
 * Contains Domain Model classes for security.
 */
@DomainLayer
@BoundedContext(name = "Security")
@Module(name = "Security", id = "security")
package com.xenoterracide.security.model;

import org.jmolecules.architecture.layered.DomainLayer;
import org.jmolecules.ddd.annotation.BoundedContext;
import org.jmolecules.ddd.annotation.Module;

obviously the logical name model isn't going to work. I would think given this output/definition that the logical name would have become security using the id on @Module

If the name/id in @Module isn't supposed to work, is there a way that does? I don't see it in https://docs.spring.io/spring-modulith/reference/fundamentals.html