Am getting java.lang.unsupportedclassversionerror in gradle build, it is a multiproject gradle build. Am using Java-8 and it was working so far but, all of a sudden it stopped working and started throwing the below exception.
com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang .UnsupportedClassVersionError: org/eclipse/core/runtime/OperationCanceledException 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
below is the seeting.gradle
rootProject.name = 'ecommerce'
include ':ecommerce:commandLine'
include ':ecommerce:commandExecution'
include ':ecommerce:model'
include ':ecommerce:model-validation'
include ':ecommerce:modelframework'
include ':ecommerce:model-graphql'
include ':ecommerce:server'
include ':ecommerce:utilityhandler'
As I already mentioned, this was working till these days and started throwing the above exception. Any help here is appreciated. Thanks in advance