Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1: Added Layer rules L1-L12 #10

Merged
merged 5 commits into from
Feb 6, 2023

Conversation

vlad961
Copy link
Contributor

@vlad961 vlad961 commented Jan 24, 2023

#1
Implemented Layer rules L1-12 with Archunit

@hohwille hohwille changed the title Added Layer rules L1-L12 #1: Added Layer rules L1-L12 Jan 30, 2023
Copy link
Contributor

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlad961 Thanks for your PR. Nice that you found the solution to prevent errors if a layer is empty. 👍
I have added several review comments. Can you please have a look and try to address my concerns?

Comment on lines 19 to 23
.layer("common").definedBy("com.devonfw.sample.archunit.common..") //
.layer("logic").definedBy("com.devonfw.sample.archunit.logic..") //
.layer("dataaccess").definedBy("com.devonfw.sample.archunit.dataaccess..") //
.layer("service").definedBy("com.devonfw.sample.archunit.service..") //
.layer("client").definedBy("com.devonfw.sample.archunit.client..")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlad961 the package root and especially the component should not be encoded here:

  • We might have multiple components in the same application and each could have any up to all out of this layers
  • As we want to provide a "starting point" and "template" for projects using devonfw and arch-unit we should not tie this to com.devonfw.sample.archunit as otherwise every project would have to adopt this to their own root package what is however not neccessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed each layer definition by exchanging the prefix: "com.devonfw.sample.archunit" with a second "." (dot).

@hohwille hohwille linked an issue Jan 30, 2023 that may be closed by this pull request
2 tasks
@vlad961 vlad961 requested a review from hohwille February 1, 2023 09:09
Copy link
Contributor

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlad961 thanks for your update. Looks almost perfect now. 👍
Still I have two review annotations you should address.

Postponed its implementation as discussed.
Copy link
Contributor

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlad961 thanks for your rework. Ready for merge. 👍

@hohwille hohwille merged commit 9d6008d into devonfw-sample:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement layer rules
2 participants