AEM SDK version upgrade in AEM as a cloud service : pipeline failed due to compilation failure
I am trying to update AEM SDK version from 2021.6.5540.20210615T210737Z-210527 to 2023.4.11835.20230414T234523Z-230200. The build is working fine in local (local java 11.0.13 2021-10-19 LTS)
08:57:35,922 [main] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project aem-project.core: Compilation failure
08:57:35,922 [main] [ERROR] /build_root/build/etisalat-p42155/core/src/main/java/com/project/core/services/impl/GoogleMapsServiceImpl.java:[5,41] cannot access org.apache.jackrabbit.oak.commons.PropertiesUtil
08:57:35,923 [main] [ERROR] bad class file: /root/.m2/repository/com/adobe/aem/aem-sdk-api/2023.4.11835.20230414T234523Z-230200/aem-sdk-api-2023.4.11835.20230414T234523Z-230200.jar(org/apache/jackrabbit/oak/commons/PropertiesUtil.class)
08:57:35,924 [main] [ERROR] class file has wrong version 55.0, should be 52.0
08:57:35,925 [main] [ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
After go through some experinceleaguecommunities pages, I can understand that cloudmanager is using java 8 to compile the code. So I am getting this error. Also all are suggesting that to upgrade the cloud manger java version to 11.
1) Will this version 2023.4.11835.20230414T234523Z-230200 support backward compatibility to java 8
2) Is there anyway to fix this issue without upgrading to java 11.
Please advise.