Using guava with GWT

Guava is a very useful library, and it is quite easy to use it (partially) within the GWT client code.

First, add the guava.jar and the guava-gwt.jar libs to your project. If you are using maven, just add the following dependency to you pom.xml:

For Ivy or Gradle, just have a loot at here.

Once the libs are in your classpath, you can inherit the required modules in your GWT module:

or, as in my case, just add

which does all of the above…

I am not going into all the guava goodies here, but…


Leave a Reply

Your email address will not be published. Required fields are marked *