Skip to content

Commit 85655c2

Browse files
thombergsodrotbohm
authored andcommitted
GH-209 - Update the README with a complete pom.xml snippet to get started.
1 parent e51262d commit 85655c2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

readme.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@ It supports the link:{docs}#verification[verification] of such modular arrangeme
77
== Quickstart
88

99
. Create a Spring Boot application on https://start.spring.io
10+
. Add Spring Modulith to your application by adding this to your `pom.xml`:
11+
+
12+
[source, xml]
13+
----
14+
<repositories>
15+
<repository>
16+
<id>spring-snapshots</id>
17+
<url>https://repo.spring.io/snapshot</url>
18+
</repository>
19+
</repositories>
20+
<dependencyManagement>
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.springframework.modulith</groupId>
24+
<artifactId>spring-modulith-bom</artifactId>
25+
<version>1.0.0-SNAPSHOT</version>
26+
<scope>import</scope>
27+
<type>pom</type>
28+
</dependency>
29+
</dependencies>
30+
</dependencyManagement>
31+
<dependencies>
32+
<dependency>
33+
<groupId>org.springframework.modulith</groupId>
34+
<artifactId>spring-modulith-starter-core</artifactId>
35+
</dependency>
36+
</dependencies>
37+
----
1038
. Create a Java package arrangement that puts business modules as link:{docs}#fundamentals[direct sub-packages of the application's main package].
1139
+
1240
[source, text, subs="macros"]

0 commit comments

Comments
 (0)