Can't build Gradle project on Raspberry Pi 3

Hi, I am trying to build Gradle project which is using Java, Tomcat etc. to create web server. However I am receiving compile error. (I have success building project on ubuntu 18.04).

click here to view the output and build.gradle.

I am building on:

Raspbian GNU/Linux 9 (stretch).

Java version on the machine:

java version “1.8.0_65”
Java™ SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot™ Client VM (build 25.65-b01, mixed mode)

Gradle version:


Java version on the Ubuntu 18.04

java version “1.8.0_181”
java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)