subprojects { apply plugin: 'java' compileJava { sourceCompatibility = 1.8 targetCompatibility = 1.8 options.encoding = 'UTF-8' } repositories { mavenLocal() mavenCentral() } configurations { compile_excludeCopy compile.extendsFrom compile_excludeCopy } dependencies { /* Core */ compile (group: 'mc', name: 'core', version: '1.0-SNAPSHOT') /* Components */ compile (group: 'org.projectlombok', name: 'lombok', version: '1.16.16') } task copyDep(type: Copy) { into 'libs' from configurations.compile + configurations.runtime - configurations.compile_excludeCopy } task cleanDep(type: Delete) { delete 'libs' } }