allprojects { apply plugin: 'eclipse' apply plugin: 'idea' } subprojects { apply plugin: 'java' repositories { mavenCentral() maven { url "http://clojars.org/repo/" } } configurations { apt aptCompileOnly aptOnly aptOnly.extendsFrom apt, aptCompileOnly compile.extendsFrom apt compileOnly.extendsFrom aptCompileOnly } tasks.withType(JavaCompile) { options.encoding = "UTF-8" options.annotationProcessorPath = configurations.aptOnly } }