Creating a .modl file of external Java Drivers code using Gradle in IntelliJ

Hello!
I am using java jdk 11 version which is compatible with Ignition 8, still I am facing the build error.