it require jdk8 but you have jdk 11 so download jdk 8 first
safest way to run the build using the gradlew/gradlew.bat (gradle wrapper) which will download the same version of gradle used to build this project (in case there other incompatibility issue related to gradle version)
i have no experiance with docker so not sure how you run this command
./gradlew build run this from the project directory in linux/unix gradlew.bat build using windows
You really shouldn’t use a project that uses a 7 year old version of Gradle as blueprint for anything Gradle.
Gradle is still developing in a fast pace and many things changed since then.
But otherwise almost as justsomeone said.
The declared compatibililty in the build script is only marginally important here.
The important part is, that gradle/wrapper/gradle-wrapper.properties defines it builds with Gradle 2.3 and Compatibility Matrix shows that you cannot use anything newer than Java 8 to run that Gradle version.