Société Générale has released a Gradle plugin for ArchUnit that allows to run ArchUnit rules straight from Gradle: https://github.com/societe-generale/arch-unit-gradle-plugin