Yeah convention plugin is probably my first tool to grab. Probably a few ways you could go about it. task that finalizes your compile task and makes assertions about the contents of the configuration or something like that. being its own task would let you put all kinds of info in the error you throw to explain what/why/how to fix at a high level in build log