A problem occurred evaluating root project 'xxx'.
> Could not create task ':prepareRelease'.
> Could not create task of type 'GitReleaseTask'.
> Could not generate a decorated class for type GitReleaseTask.
> org/eclipse/jgit/lib/ObjectId has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
GitReleaseTask.groovy is groovy task which use org.eclipse.jgit library from gradle. I get the above exception while am building my project. I have also noticed jgit v5.13 in classpath of my project currently. The build was successful till few days back and all of the sudden it fails. My guess is that jgit v5.13 is built using advanced versions of Java and we are using Java8 to build our project.
Can someone help?