buildscript { Properties constants = new Properties() file("../constants.properties").withInputStream { constants.load(it) } ext.guava_version = constants.getProperty("guavaVersion") } apply plugin: 'maven' repositories { mavenCentral() } dependencies { compile "com.google.guava:guava:$guava_version" }