Skip to content

Commit ff8da5f

Browse files
#48: Documentation: Motivation (#53)
1 parent 46d8164 commit ff8da5f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ Template of https://github.com/devonfw/java/blob/main/modules/ROOT/pages/archite
77
Please note that we assume a classic three-layered archicture as described in the link above.
88
However, it is easy to adopt this showcase to other architecture styles like https://en.wikipedia.org/wiki/Hexagonal_architecture_(software)[hexagonal architecture].
99

10+
== Why does Archunit improve my project?
11+
12+
ArchUnit is a java library which can be easily adopted to the needs of your project. The code is simple to understand through high readability. Custom warnings when rules are violated help the developers to understand which architechtural rule has been broken. You can use the given blueprint from this project using the basic devonfw-architecture to specify and add your own architectural rules with only a small or no effort.
13+
The given blueprint can be adapted to your project through copying the https://github.com/devonfw-sample/archunit/tree/master/src/test/java/com/devonfw/sample/archunit[test] folder, together with the needed imports from the https://github.com/devonfw-sample/archunit/blob/master/pom.xml[pom.xml].
14+
1015
== Blueprint for architecture validation
1116

12-
Based on ArchUnit we have created a blueprint how to validate a devonfw based architecture that can be found https://github.com/devonfw-sample/archunit/tree/master/src/test/java/com/devonfw/sample/archunit[here].
17+
Based on ArchUnit we have created a blueprint how to validate a devonfw based architecture that can be found https://github.com/devonfw-sample/archunit/tree/master/src/test/java/com/devonfw/sample/archunit[here]. The blueprint is based on the https://github.com/devonfw/sonar-devon4j-plugin/blob/master/documentation/rules.asciidoc[sonar-devon-4j-plugin rules].
1318
You can easily adopt, extend or tweak this to the needs of your project.
1419
It is meant as a best-practice and starting point for projects that want to introduce ArchUnit but do not have time to walk through the entire https://www.archunit.org/userguide/html/000_Index.html[ArchUnit documentation] and figure out how to properly get everything up and running.
15-
Once you have such a strating point as template, you can quickly adopt and extend it to your own needs.
20+
Once you have such a starting point as template, you can quickly adopt and extend it to your own needs based upon this first implementation.
21+
To make integration as easy as possible we have also documented some https://github.com/devonfw-sample/archunit/blob/master/best-practices.adoc[best practices].
1622

1723
== Demonstration of violations
1824

0 commit comments

Comments
 (0)