[EAS Build Failing] Android builds are failing because one module uses Java 8 language features

One of my build android is failing due to this error . One module is using Java lambda expressions in their source. I thing this is not supported in JDK 1.7

> Task :smartech-reactnative-nudges:compileReleaseJavaWithJavac FAILED
[stderr] 
/home/expo/workingdir/build/node_modules/smartech-reactnative-nudges/android/src/main/java/io/hansel/react/HanselRn.java:103: error: lambda expressions are not supported in -source 1.7
[stderr] 
        view.post(() -> {
[stderr] 
                     ^
[stderr] 
  (use -source 8 or higher to enable lambda expressions)
[stderr] 

My local builds are working fine. But how do I solve this for EAS build ? Is there any EAS config to tell EAS to use JDK 1.8 to compile the project or something like that?