Also enable Java 1.7 in gradle build file
Merge pull request #4083 from schwabe/java17gradle

Also enable Java 1.7 in gradle build file