Use Gradle 1.10.
Covert Result to Java, and refactored to use multiple Result types.