apply plugin: 'java' sourceSets { main { java { srcDirs = ['guava/src'] } } } dependencies { compile project(':external:jsr305') }