Building Gradle sample in Travis

We should be sure that changes do not brake our Gradle configuration, so we are building both maven and Gradle examples in Travis.
Corrected.