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

Restrict imports with maven enforcer #1808

Merged
merged 2 commits into from Dec 3, 2021
Merged

Restrict imports with maven enforcer #1808

merged 2 commits into from Dec 3, 2021

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Dec 1, 2021

Redo of #1802.

WIth the new version I don't have to specify static separately, so the configuration is pretty streamlined. I like that the checkstyle plugin can be very strict on the modular part, allowing this to be a little more lenient. But using enforcer has the advantage of working with mvn test (or most other maven commands), and not requiring a separate "checkstyle:check" call.

Set as draft because it's using a snapshot dependency, but wanted to stick this up here for @mprins and @hazendaz review. Will wait to merge until it's a released version.

Copy link
Member

@hazendaz hazendaz left a comment

Choose a reason for hiding this comment

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

LGTM, interesting move on that project to 'develop' line that I would not have otherwise even noticed. I like how this enforces this project to use only what it needs and nothing more.

@dbwiddis dbwiddis marked this pull request as ready for review December 3, 2021 03:55
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 87.604% when pulling 8809d9d on dbwiddis:restrictimports into 8bc1ef8 on oshi:master.

@dbwiddis dbwiddis merged commit abd889f into oshi:master Dec 3, 2021
@dbwiddis dbwiddis deleted the restrictimports branch December 3, 2021 04:10
dbwiddis added a commit that referenced this pull request Dec 15, 2021
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.

None yet

3 participants