Enable Annotation Processing in IntelliJ IDEA

How can I enable annotation processing by default in IDEA for my project? There are a few examples floating around using Gradle’s IdeaProject , but they are old I cannot get any of them to work in the latest version of IntelliJ and Gradle.