Skip to content

Commit

Permalink
bit more explanations on excluding path config
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-fuchs committed Aug 20, 2020
1 parent 4a45a9b commit 52b1159
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,12 @@ Since v2.2.0, you can benefit from ArchUnit advanced configuration, as the plugi

Since v2.4.0, configuration can take an optional `excludedPaths` element. All classes that have a location that contains one the mentioned Strings will be excluded from the ArchUnit checks : can be useful in case some classes are generated (Lombok, Mapstruct, ..) and you have little or no control on what gets generated.

Remember that ArchUnit operates on the **compiled code** : so we can't exclude something like `generated-sources`. However, if these generated classes are part of a specific package, we can exclude that package.

See [ExclusionImportOption.java](https://github.com/societe-generale/arch-unit-build-plugin-core/blob/2a6f5d009b96a7921bf2de65fcc0aad85edc006a/src/main/java/com/societegenerale/commons/plugin/utils/ExclusionImportOption.java) for details on the (very simple) logic.



## Contribute !

If you want to make changes in the Maven specific behavior, don't hesitate to open on issue on this repository and/or create a pull request.
Expand Down

0 comments on commit 52b1159

Please sign in to comment.