From 6de6f46ada8fa1c8fe3e543d3c2151cad7d9d31e Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Wed, 10 Apr 2024 19:08:58 +0200 Subject: [PATCH] GH-550 - Polishing. --- src/docs/antora/modules/ROOT/pages/verification.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/docs/antora/modules/ROOT/pages/verification.adoc b/src/docs/antora/modules/ROOT/pages/verification.adoc index 75f7173e..cd6f7cd4 100644 --- a/src/docs/antora/modules/ROOT/pages/verification.adoc +++ b/src/docs/antora/modules/ROOT/pages/verification.adoc @@ -30,11 +30,10 @@ See xref:fundamentals.adoc#modules.explicit-dependencies[Explicit Application Mo Spring Modulith optionally integrates with the jMolecules ArchUnit library and, if present, automatically triggers its Domain-Driven Design verification rules described https://github.com/xmolecules/jmolecules-integrations/tree/main/jmolecules-archunit[here]. - [[excluding-packages]] == Excluding Packages -In case you like to exclude certain Java classes or full packages, you can do so with: +In case you would like to exclude certain Java classes or full packages from the application module inspection, you can do so with: [tabs] ====== @@ -52,10 +51,11 @@ ApplicationModules.of(Application::class, JavaClass.Predicates.resideInAPackage( ---- ====== -Different examples of exclusions: +Additional examples of exclusions: * `com.example.db` -- Matches all files in the given package `com.example.db`. * `com.example.db..` -- Matches all files in the given package (`com.example.db`) and all sub-packages (`com.example.db.a` or `com.example.db.b.c`). -* `..example..` -- Matches 'a.example', 'a.example.b' or 'a.b.example.c.d', but not 'a.exam.b' +* `..example..` -- Matches `a.example`, `a.example.b` or `a.b.example.c.d`, but not `a.exam.b` + +Full details about possible matchers can be found in the JavaDoc of ArchUnit https://github.com/TNG/ArchUnit/blob/main/archunit/src/main/java/com/tngtech/archunit/core/domain/PackageMatcher.java[`PackageMatcher`]. -Full details about possible matchers can be found in the JavaDoc of PackageMatcher: https://github.com/TNG/ArchUnit/blob/main/archunit/src/main/java/com/tngtech/archunit/core/domain/PackageMatcher.java \ No newline at end of file