buildscript { Properties constants = new Properties() file("../constants.properties").withInputStream { constants.load(it) } ext.guava_version = constants.getProperty("guavaVersion") } apply plugin: 'maven' apply plugin: 'java' repositories { mavenLocal() mavenCentral() } dependencies { // Add the top-level projects ONLY to the host project. runtime project.childProjects.values().collect { project(it.path) } }