Problems when trying to run an old microservice example from github

I thought I could learn more about gradle and microservices (together with docker / docker-compose) by examples from github.

This one looked promising apart from its age

Sadly the project is already a little old (6 years) and hence uses an older version of gradle such that I receive the following error message:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '11.0.15'.

Would you know maybe how I could get it started?


Hello @vonSpotz

accordying to the root build file microservice-sampler/build.gradle at master · vaquarkhan/microservice-sampler · GitHub

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

hope that help and have a nice day :slight_smile:

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/ 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.