Creating docker image of JHipster application using Gradle

Hello all, I am creating a docker image of JHipster app using Gradle by following [this guide]. When I use command ./gradlew bootWar -Pprod buildDocker, I get an error saying:

* What went wrong:
Task 'bootWar' not found in root project 'seodin'. Some candidates are: 'bootRun'.

It recommends trying the same command with bootRun, but on doing that, I get the following error:

Execution failed for task ':bootRun'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

I am stuck at this point. Any help is appreciated.

(Docker and Docker Compose)