<?xml version="1.0" encoding="UTF-8"?> <project…
- User
4.0.0 org.parkapp common 0.0.1-SNAPSHOT common-core 0.0.1-SNAPSHOT common-core jar
<description>Common core</description> <dependencies> <dependency> <groupId>nl.jqno.equalsverifier</groupId> <artifactId>equalsverifier</artifactId> <version>3.15.1</version> <scope>compile</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build><description>Common core</description> <dependencies> <dependency> <groupId>nl.jqno.equalsverifier</groupId> <artifactId>equalsverifier</artifactId> <version>3.15.1</version> <scope>compile</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> </excludes> </configuration> </plugin> </plugins> </build>the parkapp-common can be considered as a shared kernel I have common classes like package org.parkapp.common.domain.model;
import org.parkapp.common.AssertionConcern;
import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List;
public class Entity extends AssertionConcern implements Serializable {
private static final long serialVersionUID = 1L; protected Entity() { super(); } private final List<DomainEvent> domainEvents = new ArrayList<>(); protected void publish(DomainEvent domainEvent) { domainEvents.add(domainEvent); } public List<DomainEvent> domainEvents() { return Collections.unmodifiableList(domainEvents); }} package org.parkapp.common.application.eventstore;
import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import java.io.Serializable; import java.util.Date; import org.parkapp.common.domain.model.DomainEvent;
- Assistant