holmari / gerritstats

Tool for creating statistics from a Gerrit repository
MIT License
193 stars 54 forks source link

Execution failed for task ':GerritCommon:compileJava'. #8

Closed anujsadani closed 7 years ago

anujsadani commented 7 years ago

while executing ./gradlew assemble getting BUILD FAILED.

/home/username/gerritstats-master/GerritCommon/src/main/java/com.holmsted/resources/ResourceReader.java:21: illegal start of type List lines = new ArrayList<>(); ^ 2 errors :GerritCommon:compileJava FAILED

FAILURE: Build failed with an exception.

holmari commented 7 years ago

You're trying to compile with an old Java version. Java 8 is required for this project. I will add a mention about it to the README.