Adding support for java 1.5 to gradle build