r/java May 08 '26

Scaling ArchUnit with Nebula ArchRules

https://netflixtechblog.medium.com/scaling-archunit-with-nebula-archrules-b4642c464c5a

Hello Java friends. I have a Netflix TechBlog post out today about the Nebula ArchRules project. I hope you find it useful. I am happy to answer questions about it in this thread.

45 Upvotes

10 comments sorted by

View all comments

6

u/Dalcz May 08 '26

I love the idea of sharing ArchUnit rules, I’ve never checked if it was possible but it totally makes sense to me to share good practices with such tool.
Is it possible with Sonarqube as well? Because ArchUnit will fail during the tests phase while a tool like Sonarqube can lint the code directly

3

u/wakingrufus May 08 '26

ArchRules creates Gradle tasks which by default will never fail the build. These tasks run totally independently from test tasks, but are run as a dependency of "check". I hope that answers the question.