What's the best way to test assertions, enforce ru...
# community-support
e
What's the best way to test assertions, enforce rules, etc... for Gradle in a build with many projects? Some of the assertions might be specific to one project (e.g. this project can't depend on any other project in the build) and another might apply to all projects (e.g. all projects should be applying a specific convention plugin)
t
I think the answers will be highly specific to what it is you want to validate we have a task in one of our large builds called conventionsEnforcer that just greps every build script to ensure they're all applying a convention plugin. a little naive in the implementation but since we own the whole build it's good enough
e
I was hoping there'd be something that abstracted Gradle functionality into a testable / assertable framework. I thought that Konsist did this, but either I'm mistaken or it was never implemented.