Gradle build file fixes

- Fixed source/target compatibility option to generate classes for Java
1.6
- Fixed sonatype repository authentication problem