Dependency on Guava can be added in your Java project by using any build system.
Maven:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
Gradle:
dependencies {
compile 'com.google.guava:guava:19.0'
}
Ivy
<dependency org="com.google.guava" name="guava" rev="19.0" />
Buildr
compile.with 'com.google.guava:guava:jar:19.0'
Manual Dependency
You can also just manually download JARs from Guava's release page for the classes, sources and javadocs.
Note that JDK 1.6 or newer is required for Guava 12.0 through 20.0. See Version list for more info. Guava users who target Java 5 should use the Guava JDK5 backport. This includes users who target Android Froyo and earlier.