GH-132 - Introduce core starter POM.

We now ship a spring-modulith-starter-core that includes dependencies that will typically be used for core runtime support, including the spring-modulith-moments and …-api artifacts in compile scope (so that production code can refer to them) as well as both the …-core and …-runtime artifacts in runtime scope (primarily for ApplicationModuleListener support).

The persistence-technology-specific event publication registry starters now refer to that core starter.
This commit is contained in:
Oliver Drotbohm
2023-02-11 09:06:58 +01:00
parent 71f928f5b0
commit 9428d3be87
5 changed files with 49 additions and 18 deletions

View File

@@ -27,6 +27,7 @@
<module>spring-modulith-moments</module>
<module>spring-modulith-observability</module>
<module>spring-modulith-runtime</module>
<module>spring-modulith-starter-core</module>
<module>spring-modulith-starter-jdbc</module>
<module>spring-modulith-starter-jpa</module>
<module>spring-modulith-starter-mongodb</module>

View File

@@ -0,0 +1,45 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith</artifactId>
<version>0.4.0-SNAPSHOT</version>
</parent>
<artifactId>spring-modulith-starter-core</artifactId>
<name>Spring Modulith - Starter Core</name>
<properties>
<module.name>org.springframework.modulith.starter.core</module.name>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-api</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-core</artifactId>
<version>0.4.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-moments</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-runtime</artifactId>
<version>0.4.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>

View File

@@ -19,12 +19,7 @@
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-api</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-moments</artifactId>
<artifactId>spring-modulith-starter-core</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>

View File

@@ -19,12 +19,7 @@
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-api</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-moments</artifactId>
<artifactId>spring-modulith-starter-core</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>

View File

@@ -19,12 +19,7 @@
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-api</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.experimental</groupId>
<artifactId>spring-modulith-moments</artifactId>
<artifactId>spring-modulith-starter-core</artifactId>
<version>0.4.0-SNAPSHOT</version>
</dependency>